Browse Source

CLDC-3886 Add aria label to non-descriptive clear filters link for improved accessibility (#3047)

pull/3050/head
Manny Dinssa 1 week ago committed by GitHub
parent
commit
dd86460f1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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 = {})
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

Loading…
Cancel
Save