From e0646216db27e229ebdc99b11948a32ae486b466 Mon Sep 17 00:00:00 2001 From: Danny Akbarzadeh Date: Thu, 6 Mar 2025 19:07:02 -0500 Subject: [PATCH 1/2] Patch bug introduced by prev. accessibility fix --- app/components/sn_filterable/filter_category_component.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/sn_filterable/filter_category_component.html.erb b/app/components/sn_filterable/filter_category_component.html.erb index 1bcc297..6f31d7e 100644 --- a/app/components/sn_filterable/filter_category_component.html.erb +++ b/app/components/sn_filterable/filter_category_component.html.erb @@ -28,7 +28,7 @@
<%= content_tag :label, sub_filter[:name], - class: "block py-2 pr-4 text-gray-600 dark:text-gray-400 select-none w-full cursor-pointer", + class: "block pl-3 py-2 text-gray-600 dark:text-gray-400 select-none w-full cursor-pointer", for: "filter-#{@filter[:filter_name]}-#{index}" %>
From b107671342398bb65c3b29451129e9cd70515484 Mon Sep 17 00:00:00 2001 From: Danny Akbarzadeh Date: Thu, 6 Mar 2025 19:07:32 -0500 Subject: [PATCH 2/2] Add ARIA label for main component's form element --- app/components/sn_filterable/main_component.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/components/sn_filterable/main_component.html.erb b/app/components/sn_filterable/main_component.html.erb index 06a1a3e..001437d 100644 --- a/app/components/sn_filterable/main_component.html.erb +++ b/app/components/sn_filterable/main_component.html.erb @@ -6,6 +6,7 @@ "method": "get", "data-turbo-frame": @frame_id, "class": "relative", + "aria-label": "Content filters", "@submit": "filtersLoading = true" do %> <% @extra_params.each do |k, v| %> <%= content_tag :input, "", class: "hidden", type: "hidden", value: v, name: k %>