Skip to content

Commit

Permalink
Cue screen reader users to remove applied filters
Browse files Browse the repository at this point in the history
  • Loading branch information
jazairi committed Feb 6, 2024
1 parent 67b4005 commit 7c01cb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/search/_filter.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<li class="term">
<% if filter_applied?(@enhanced_query[category.to_sym], term['key']) %>
<a href="<%= results_path(remove_filter(@enhanced_query, category.to_sym, term['key'])) %>" class="applied">
<span class="sr">Remove applied filter?</span>
<% else %>
<a href="<%= results_path(add_filter(@enhanced_query, category.to_sym, term['key'])) %>">
<% end %>
Expand Down

0 comments on commit 7c01cb1

Please sign in to comment.