diff --git a/app/views/admin/attachments/_attachments.html.erb b/app/views/admin/attachments/_attachments.html.erb index d71b4385d5b..b6f301c3138 100644 --- a/app/views/admin/attachments/_attachments.html.erb +++ b/app/views/admin/attachments/_attachments.html.erb @@ -31,8 +31,8 @@ <% end %>
- <%= link_to("Edit attachment", [:edit, :admin, typecast_for_attachable_routing(attachable), attachment.becomes(Attachment)], class: "govuk-link govuk-link--no-visited-state") %> - <%= link_to("Delete attachment", [:confirm_destroy, :admin, typecast_for_attachable_routing(attachable), attachment.becomes(Attachment)], class: "govuk-link govuk-link--no-visited-state gem-link--destructive") %> + <%= link_to("Edit attachment", [:edit, :admin, typecast_for_attachable_routing(attachable), attachment.becomes(Attachment)], class: "govuk-link govuk-link--no-visited-state", "aria-label": "Edit attachment: #{attachment.title}") %> + <%= link_to("Delete attachment", [:confirm_destroy, :admin, typecast_for_attachable_routing(attachable), attachment.becomes(Attachment)], class: "govuk-link govuk-link--no-visited-state gem-link--destructive", "aria-label": "Delete attachment: #{attachment.title}") %>
<% if attachment != attachable.attachments.includes(:attachment_data).last %>