Tools panel: avoid unnecessary mismatch between visible label and accessible name #65241
Open
2 tasks done
Labels
[Type] Bug
An existing feature does not function as intended
Description
Similar to #65112 and #65235
In the Tools panel, the aria-label attributes for the elements that are shown / hidden and reset mismatch the visible text. As such, this is a mismatch between vissual label and actual accessible bane that is a barrier for some users.
This kind of mismatch should always be avoided. For example:
H2
.Show H2
orHide and reset H2
.Worth also reminding the label of a control i.e. its accessible name isn not the right place to communicate states or values.
gutenberg/packages/components/src/tools-panel/tools-panel-header/component.tsx
Lines 101 to 111 in b1c9676
Step-by-step reproduction instructions
H1
,H2
, etc.Show H1
,Show H2
, etc. orHide and reset H1
,Hide and reset H2
, etc. depending on the state.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.
The text was updated successfully, but these errors were encountered: