-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(search): fix a11y structure (#4801)
This change does the following things: * Ensures that the `<label>` in `<Search>` is hidden when `<TableToolbarSearch>` hides it. This fixes the orphaned relationship between `<input>` and `<label>` when search box is collpased and fixes "INPUT LABEL references must be valid" DAP error * Changes the ARIA role of the search container in `<TableToolbarSearch>` to `search` rather than `searchbox`, to better reflect its "container" nature. Also added `searchbox` role to the underlying `<input>` to reflect where the search box is. This lets VoiceOver announce the `<input>` inside `<Search>` as a "search text field" rather than "edit text", and fixes "An interactive element/widget must have an accessible name" DAP error when search box is expanded Fixes #3806.
- Loading branch information
Showing
5 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters