Add a visually hidden label to the search block #34989
Labels
[Block] Search
Affects the Search Block - used to display a search field
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
What problem does this address?
The search block has an option to toggle the form label on and off.
Turning it off removes the label completely. This results in a lack of context for non sighted users.
Read more:
#24666 (comment)
https://dequeuniversity.com/rules/axe/3.3/label
What is your proposed solution?
Instead of removing it completely, a visually hidden label should be present.
The visually hidden form label should work both with a custom text and the default label.
The text was updated successfully, but these errors were encountered: