BlockVariationTransforms: Improve clarity and labeling #59898
Labels
[Feature] Block Variations
Block variations, including introducing new variations and variations as a feature
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Block editor
/packages/block-editor
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
The
BlockVariationTransforms
component of the block editor is used to show variations of a block, for example for the Group block. It conditionally renders 3 different UIs, depending on some conditions:Screenshot:
All these three UIs can be improved fo rbetter clarity and labeling.
Radio group
role=radiogroup
with an aria-label 'Transform to variation'. That'e the equivalent of a native fieldset<legend>
element. The hidden group name is less than ideal. It should be visible to clearly indicate what these controls are. Worth also noting that all the other settings sections do have a visible title.Icon buttons
aria-label="Row"
. A mismatch between visible label and accessible name is a barrier for assistive technology users, for example sighted screen reader users or speech recognition software users.Dropdown menu
Group Gather blocks in a container.
is just confusing. Accessible name and description should always be separated. This appears to be a more general problem with theMenuItem
component, where the propinfo
just adds text to the button content. To illustrate visually, this would be the equivalent of a native button element with some really confusing text like in this example screenshot:(literally with no space between Group and Gather)
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: