Open afercia opened 1 week ago
There's plenty of cases of this kind of mismatch. For example, the main Inserter search input:
Search
.Search for blocks and patterns
. Notice that it is also inaccurate, as the Inserter now contains blocks, patterns, and media.Screenshot revealing the visually hidden label:
Same for the link control, etc.:
Description
Similar to https://github.com/WordPress/gutenberg/issues/65112
See the above issue for more context.
When possible, the visual labeling of controls should match the actual accessible name (provided for example by a visually hidden
<label>
element, or anaria-label
oraria-labelledby
attributes).All the search inputs in the editor should be audited and any mismatch avoided.
As an example, the Search input in the Styles panel > Blocks is visually labeled via its placeholder attribute. This is already arguable, as placeholders should not be used as replacement for labels.
Search
.Search for blocks
.While the added context may help blind screen reader users, it doesn't help other users and may even be an accessibility barrier, for example for sighted screen reader users and speech recognition / voice control users.
Step-by-step reproduction instructions
Search
.<label>
element isSearch for blocks
.Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.