Skip to content

Commit e7ef64b

Browse files
committed
Fix for search form label for attribute
Chrome pointed out the "for" attribute for the search input was not pointing to a corresponding field "id" as it should. More info: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/for#usage
1 parent d673bc8 commit e7ef64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/searches/combobox.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def view_template
3535
} do |f|
3636
div(class: "flex items-center flex-row pl-2 col-gap-xs") do
3737
svg_tag "icons/search.svg", class: "w-[32px] fill-current text-theme"
38-
label(for: "query", class: "sr-only") { "Query" }
38+
label(for: combobox_dom_id, class: "sr-only") { "Query" }
3939
whitespace
4040
plain f.search_field :query,
4141
value: query,

0 commit comments

Comments
 (0)