Fix the blocks aria-label #5505
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Bug
An existing feature does not function as intended
Previously, the blocks container used to be focusable with a
tabindex="0"
and it was labeled with anaria-label
attribute to give each block a name. See 1a17201 and related #1618This was the related markup:
This was a nice feature. When navigating through the blocks using assistive technologies, and landing on a block, each block announced its type, for example:
Block: Paragraph
Block: Image
etc.
After recent changes, this aria-label is now on a non-focusable div, see
gutenberg/editor/components/block-list/block.js
Line 603 in 8f07c80
This is not correct and should be fixed. The aria-label should be set on a container that actually receives focus. It also needs an explicit
role
attribute, e.g.role="group"
if there are no other roles that suit better.Regardless, it's not clear to me where the focus currently lands and if there are other pending changes planned for the blocks interaction.
Worth also considering the pending experiment about "navigation mode / edit mode":
#3195
#2031
The final goal should always be:
The text was updated successfully, but these errors were encountered: