Skip to content

Commit

Permalink
Mark poster images and wrapping links as presentational for screen re…
Browse files Browse the repository at this point in the history
…aders
  • Loading branch information
cjcolvar committed Jan 10, 2024
1 parent 8242230 commit f6ea42a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/javascript/components/collections/list/CollectionCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const CollectionCard = ({ attributes, showUnit }) => {
<CollectionCardShell>
<CollectionCardThumbnail>
{attributes.poster_url && (
<a href={attributes.url}>
<img src={attributes.poster_url} alt="Collection thumbnail"></img>
<a href={attributes.url} aria-hidden="true" tabindex="-1">
<img src={attributes.poster_url} alt=""></img>
</a>
)}
</CollectionCardThumbnail>
Expand Down
2 changes: 1 addition & 1 deletion app/views/collections/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Unless required by applicable law or agreed to in writing, software distributed

<div class="collection-details-wrapper row">
<div class="document-thumbnail col-sm-4 order-8">
<%= image_tag @doc_presenter.poster_url %>
<%= image_tag @doc_presenter.poster_url, alt: '' %>
<div class="filter-collection-button-wrapper">
<a href="<%= search_catalog_path('f[collection_ssim][]' => @doc_presenter.name) %>"
class="btn btn-outline btn-block">
Expand Down

0 comments on commit f6ea42a

Please sign in to comment.