Skip to content

Commit

Permalink
Merge pull request #3399 from projectblacklight/aria-hidden
Browse files Browse the repository at this point in the history
Remove icons should be aria-hidden
  • Loading branch information
jcoyne authored Nov 4, 2024
2 parents 6c45033 + 39a5503 commit 472667c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</span>
<% if @remove_path.present? %>
<%= link_to(@remove_path, class: 'btn btn-outline-secondary remove') do %>
<%= render Blacklight::Icons::RemoveComponent.new %>
<%= render Blacklight::Icons::RemoveComponent.new(aria_hidden: true) %>
<span class="visually-hidden"><%= remove_aria_label %></span>
<% end %>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion app/components/blacklight/facet_item_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def render_selected_facet_value
tag.span(label, class: "selected") +
# remove link
link_to(href, class: "remove", rel: "nofollow") do
render(Blacklight::Icons::RemoveComponent.new) +
render(Blacklight::Icons::RemoveComponent.new(aria_hidden: true)) +
tag.span(helpers.t(:'blacklight.search.facets.selected.remove'), class: 'visually-hidden')
end
end + render_facet_count(classes: ["selected"])
Expand Down

0 comments on commit 472667c

Please sign in to comment.