Repository navigation
Description
Description
The labels of the ARIA landmarks in the Editor are supposed to start with the word Editor.
That's because, when the Editor is not in Fullscreen mode, there are a few more ARIA landmarks that come from the 'classic' admin pages. When the Editor was introduced in core, it was decided to distinguish the Editor landmarks from the classic ones by prepending the word 'Editor'.
Typically, these are the ARIA landmarks in the 'classic' pages:
- 'Main menu'
- 'Toolbar'
- main (unlabelled
<main>element) - content information (unlabelled
<footer>element)
Screenshot to illustrate the need to distinguish the editor landmarks from the classic ones:
However, some Editor ARIA landmarks that have been introduced at a later time don't start with the word 'Editor'. For example:
- 'Document Overview'
- 'List View'
- 'Save sidebar'
This inconsistency doesn't help users and breaks a naming convention that was decided long time ago. I think it's worth reevaluating the labelling of all the landmarks.
Landmarks in the Post Editor:
- 'Editor top bar'
- 'Block Library'
- 'Block pattern categories'
- 'Media categories'
- 'Document Overview'
- 'Editor content'
- 'Editor settings'
- 'Editor publish'
- 'Editor footer'
Landmarks in the Site Editor:
- 'Navigation sidebar'
- navigation (unlabelled
<nav>element) - 'Editor content'
- 'Editor top bar'
- 'Block Library'
- 'Block pattern categories'
- 'Media categories'
- 'List View'
- 'Editor settings' (shows both the Settings and the Styles sidebars)
- 'Save sidebar'
- 'Editor footer'
Landmarks in the Widgets page:
- 'Widgets top bar'
- 'Widgets and blocks'
- 'Widgets settings'
- 'Widgets footer'
For better consistency, this should be improved in order to:
- either make the labelling always start with 'Editor' ('Widgets' for the Widgets page)
- or just remove the word 'Editor', as long as the region names are clear when not in Fullscreen mode
Cc @alexstine
Step-by-step reproduction instructions
- Use a screen reader to navigate the ARIA landmarks in the Post editor, Site editor, and Widgets page.
- Observe the labelling inconsistencies.
- Hint: non screen reader users may want to try this Firefox add-on: https://addons.mozilla.org/en-US/firefox/addon/landmarks/
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

Activity
alexstine commentedon Apr 9, 2023
@afercia I am not sure the extra verbosity is needed here. It should be fairly straight forward for users to understand they are in an editing context when selecting edit, add, or the literal editor. That is an interesting point about full screen mode but I do not think it should change anything. The only difference is the admin menu/toolbar would be displayed.
afercia commentedon Apr 11, 2023
Cool, thanks. The simpler, the better.
afercia commentedon Apr 20, 2023
Trying to recap the landmarks naming situation in the table below, where:
To me, there are a few problematic names that should be more meaningful:
<nav>element) in the Site Editor: Ideally they should be merged in only one navigation. Also, the name should explain what kind of navigation this is about.Worth reminding the new names need ot be unique, for clarity and also because they're used in many E2E tests.
Cc @alexstine I'd greatly appreciate any fedback and proposals for better new names ❤️
alexstine commentedon Apr 20, 2023
@afercia
Should probably call this breadcrumbs? I think that is the only thing in it. This does not make much sense really.
No idea. Is toolbar referring to the block formatting toolbar?
skorasaurus commentedon Apr 20, 2023
In case you weren't aware, may want to follow this conversation to ensure consistent terms are used - #49837
afercia commentedon Apr 21, 2023
@alexstine
'Toolbar' is a part of the 'classic' admin interface. It contains:
It's present also on the front end, when logged in, and in the Post Editor, when fullscreen mode is disabled.
Visually, it's a horizontal bar at the very top of the page.
alexstine commentedon Apr 21, 2023
@afercia Hmm, got it. I wonder if that should have been prefixed with "Admin" for "Admin Toolbar". Need some way to tell users that it is global and not part of Gutenberg itself.