diff --git a/app/components/blacklight/constraint_layout_component.html.erb b/app/components/blacklight/constraint_layout_component.html.erb index 9331bf219..288482094 100644 --- a/app/components/blacklight/constraint_layout_component.html.erb +++ b/app/components/blacklight/constraint_layout_component.html.erb @@ -9,7 +9,7 @@ <% 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) %> <%= remove_aria_label %> <% end %> <% end %> diff --git a/app/components/blacklight/facet_item_component.rb b/app/components/blacklight/facet_item_component.rb index 2e057d31b..d467281e8 100644 --- a/app/components/blacklight/facet_item_component.rb +++ b/app/components/blacklight/facet_item_component.rb @@ -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"])