Block switcher rmenu accessibility and labeling improvements #62931
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Needs Design Feedback
Needs general design feedback.
[Package] Block editor
/packages/block-editor
[Type] Bug
An existing feature does not function as intended
Description
This came into my mind while providing a11y feedback on #60810
The block switcher opens a dropdown menu that is an ARIA menu pattern. ARIA menus can only contain children with role
menuitem
,menuitemcheckbox
,menuitemradio
and, optionally, groups with separators.Visually, the menu is spit into two main groups. Semantically, there are two main groups as well. See attache dscreenshot to compare the visuals with the accessibility tree.
However, while the first group is labeled 'TRANSFORM TO`, the second group is unlabeled.
As a user, I'm not sure I would understand why there's a visual separation in two groups. What the difference between the two groups is?
Semantically, it doesn't make much sense labeling only the first group. Grouping items together makes only sense if the scope and purpose of the group is clear and meaningful. Is there a good reason to have two main groups in the first place? If there is one, than both groups should be visually and semantically labeled,
Note: the third group with the 'this block is connected' information should be removed as pointed out on #60810 (comment)
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: