Skip to content

Commit

Permalink
Merge pull request #5454 from avalonmediasystem/a11y_improvements
Browse files Browse the repository at this point in the history
Mark thumbnails and wrapping links in search results are presentational for screen readers
  • Loading branch information
cjcolvar authored Nov 6, 2023
2 parents d50e19c + 212d762 commit 4efc54f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/catalog/_thumbnail_media_object.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ Unless required by applicable law or agreed to in writing, software distributed

<div class="col-md-12 col-lg-4 row">
<% if image_url = image_for(document) %>
<%= link_to(media_object_path(document[:id]), {class: 'result-thumbnail'}) do %>
<%= image_tag( image_url ) %>
<%= link_to(media_object_path(document[:id]), aria: { hidden: 'true'}, tabindex: -1, class: 'result-thumbnail') do %>
<%= image_tag( image_url, alt: "" ) %>
<% end %>
<% else %>
<%= image_tag 'no_icon.png', class: 'result-thumbnail no-icon' %>
<%= image_tag 'no_icon.png', alt: "", class: 'result-thumbnail no-icon' %>
<% end %>
</div>

0 comments on commit 4efc54f

Please sign in to comment.