From de54e0a050c9b982a9e4aa84ce593bd8808276f3 Mon Sep 17 00:00:00 2001 From: maxgds Date: Thu, 26 Nov 2020 09:02:19 +0000 Subject: [PATCH] Allow aria-hidden attribute so icons are hidden from screenreaders --- app/views/content_items/_attachments.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/content_items/_attachments.html.erb b/app/views/content_items/_attachments.html.erb index 851bfff45..0d07b600d 100644 --- a/app/views/content_items/_attachments.html.erb +++ b/app/views/content_items/_attachments.html.erb @@ -9,7 +9,7 @@ direction: page_text_direction, } do %> <%= sanitize(legacy_pre_rendered_documents, { - attributes: %w(alt class href id src data-module data-track-category data-track-action data-track-label data-track-options data-details-track-click), + attributes: %w(alt class href id src data-module data-track-category data-track-action data-track-label data-track-options data-details-track-click aria-hidden), tags: %w(a details div h2 h3 img p section span summary), }) %> <% end %>