USWDS - Feature: Add instructions to search component #3074
Labels
A11Y Audit Findings
Findings from the accessibility audit
Package: Search
Status: Triage
We're triaging this issue and grooming if necessary
Type: Feature Request
New functionality
Is your feature request related to a problem? Please describe.
The search component needs to clarify what type of content is being searched. I suggest we add "search site" or "search directory" or other example help text to clarify what it is the person is searching.
Some webpages may have more than one search on a page (site search, directory search). Without clear instructions and labels, a someone could be confused as to what results to expect from each search.
Describe the solution you'd like
On the search component page I recommend we add labels or instructions in our example code. This would allow teams to know to specify what content the search component is indexing.
The labels need to be persistent (i.e. not helper text only).
This enhancement follows WCAG's guidance on labels and instructions.
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: