Skip to content

Commit 8e95b1c

Browse files
authored
fix: accessibility patches (#67)
* Patch bug introduced by prev. accessibility fix * Add ARIA label for main component's form element
1 parent 5c77c68 commit 8e95b1c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: app/components/sn_filterable/filter_category_component.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<div class="min-w-0 flex-1 flex-grow">
2929
<%= content_tag :label,
3030
sub_filter[:name],
31-
class: "block py-2 pr-4 text-gray-600 dark:text-gray-400 select-none w-full cursor-pointer",
31+
class: "block pl-3 py-2 text-gray-600 dark:text-gray-400 select-none w-full cursor-pointer",
3232
for: "filter-#{@filter[:filter_name]}-#{index}" %>
3333
</div>
3434
</div>

Diff for: app/components/sn_filterable/main_component.html.erb

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"method": "get",
77
"data-turbo-frame": @frame_id,
88
"class": "relative",
9+
"aria-label": "Content filters",
910
"@submit": "filtersLoading = true" do %>
1011
<% @extra_params.each do |k, v| %>
1112
<%= content_tag :input, "", class: "hidden", type: "hidden", value: v, name: k %>

0 commit comments

Comments
 (0)