Regression: restore the previous ARIA landmark regions labels #21715
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Status] In Progress
Tracking issues with work in progress
[Type] Regression
Related to a regression in the latest release
Describe the bug
The editor ARIA landmark regions labels were changed in #21335 and #20951 and now they don't provide useful information to assistive technology users.
To reproduce
Steps to reproduce the behavior:
Expected behavior
ARIA landmarks labels need to describe the purpose of the content within the region. They need to answer the question "what can I do within this region?". The main purpose of ARIA landmarks is to allow users to quickly jump through the main UI sections. In order to do so, users need to be informed what a region is dedicated to.
Also: the WordPress admin UI already uses a few ARIA landmarks. Thus, when the Editor is used in the context of the WP admin, the editor regions need to be distinguished from the ones in the admin. All the editor regions used a name that started with "Editor" for this reason. See #7940, #7938, and #2380
Screenshots
ARIA landmarks in the WordPress 5.4 admin and in the block editor
The Editor landmarks are clearly distinguished and their purpose is clear enough, with the exception of:
On latest Gutenberg 7.9.1
All the landmark labels within the editor don't clarify they pertain to the editor. Also:
Additional context
Not sure why these changes were made. If these labels are going to be used also for other purposes, then we'll need to provide specific labels for the ARIA landmarks.
Worth also noting the ARIA regions labels usage is still documented in the navigate-regions Readme:
The text was updated successfully, but these errors were encountered: