Skip to content

Commit

Permalink
Allow aria-hidden attribute so icons are hidden from screenreaders
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgds committed Nov 26, 2020
1 parent 6dc4783 commit de54e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/content_items/_attachments.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down

0 comments on commit de54e0a

Please sign in to comment.