Skip to content

Commit 40ba506

Browse files
committed
Patch bug introduced by accessibility-12154
1 parent dac6e65 commit 40ba506

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/sn_filterable/category_component.html.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<%= content_tag :fieldset,
22
class: "w-full text-xs lg:text-sm app-word-break dark:bg-gray-800",
3-
"x-data": { open: @open }.to_json do %>
4-
<legend><%= @title %></legend>
3+
"x-data": { open: @open }.to_json,
4+
"aria-label": @title do %>
55
<button class="flex border-b dark:border-gray-700 justify-between w-full px-4 py-3 font-medium text-left text-gray-900 dark:text-white transition-colors hover:bg-gray-200 dark:hover:bg-gray-700 rounded-sm focus:outline-none focus-visible:ring focus-visible:ring-gray-500 dark:focus-visible:ring-gray-400 focus-visible:ring-opacity-75"
66
type="button"
77
@click="open = !open">

0 commit comments

Comments
 (0)