-
Notifications
You must be signed in to change notification settings - Fork 0
π¨ Palette: Add aria-label to search inputs #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
61e206c
685deb4
092723c
8cdcf0e
fa74ee4
7032a05
9fc00a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -626,6 +626,7 @@ fn coverage_content() -> Markup { | |||||||||
| button #filter-failing.filter-btn onclick="filterData('failing')" { "Failing" } | ||||||||||
| button #filter-unknown.filter-btn onclick="filterData('unknown')" { "Unknown" } | ||||||||||
| input #search-box.search-box type="text" placeholder="Search by AC ID or title..." | ||||||||||
| aria-label="Search by AC ID or title" | ||||||||||
|
Comment on lines
628
to
+629
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For better accessibility and semantic correctness, consider changing the input type to
Suggested change
|
||||||||||
| oninput="searchData()"; | ||||||||||
| } | ||||||||||
|
|
||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While adding
aria-labelis a significant accessibility improvement, usingtype="search"instead oftype="text"is a better practice for search inputs. It semantically identifies the field's purpose to assistive technologies and provides built-in browser features like a 'clear' button. Additionally, thearia-labelshould ideally match the placeholder text exactly (including the ellipsis if it's considered part of the label) or be even more concise.