Browse Source

Add aria label to clear filters link for accessibility

pull/3047/head
Manny Dinssa 4 weeks ago
parent
commit
ca79523b60
  1. 2
      app/helpers/filters_helper.rb

2
app/helpers/filters_helper.rb

@ -167,7 +167,7 @@ module FiltersHelper
def reset_filters_link(filter_type, filter_path_params = {}) def reset_filters_link(filter_type, filter_path_params = {})
if applied_filters_count(filter_type).positive? if applied_filters_count(filter_type).positive?
govuk_link_to "Clear", clear_filters_path(filter_type:, filter_path_params:) govuk_link_to "Clear", clear_filters_path(filter_type:, filter_path_params:), aria: { label: "Clear filters" }
end end
end end

Loading…
Cancel
Save