Skip to content

Commit

Permalink
Hide the thumbnail from screen readers
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Feb 14, 2020
1 parent 7ba33e9 commit fac9623
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/catalog/_thumbnail_default.html.erb
@@ -1,5 +1,5 @@
<%- if has_thumbnail?(document) && tn = render_thumbnail_tag(document, {}, :counter => document_counter_with_offset(document_counter)) %>
<%- if has_thumbnail?(document) && tn = render_thumbnail_tag(document, { alt: '' }, 'aria-hidden': true, tabindex: -1, counter: document_counter_with_offset(document_counter)) %>
<div class="document-thumbnail">
<%= tn %>
</div>
<%- end %>
</div>
<%- end %>

0 comments on commit fac9623

Please sign in to comment.