We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dac6e65 commit 40ba506Copy full SHA for 40ba506
app/components/sn_filterable/category_component.html.erb
@@ -1,7 +1,7 @@
1
<%= content_tag :fieldset,
2
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>
+ "x-data": { open: @open }.to_json,
+ "aria-label": @title do %>
5
<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"
6
type="button"
7
@click="open = !open">
0 commit comments