Open afercia opened 1 year ago
@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.
Cool, thanks. The simpler, the better.
Trying to recap the landmarks naming situation in the table below, where:
New name | Old name | Type | Notes |
---|---|---|---|
Block Library | no change | region | |
Block pattern categories | no change | navigation | |
Content | Editor content | region | |
content information | no change | unlabeled <footer> element | |
Document Overview | no change | region | |
Footer | Editor footer | region | |
List View | no change | region | |
main | no change | unlabeled <main> element | |
Main menu | no change | navigation | |
Media categories | no change | navigation | |
Navigation | Navigation sidebar | region | |
navigation | no change | unlabeled <nav> element | Nested within the Site Editor Navigation sidebar |
Publish | Editor publish | region | |
Save panel | Save sidebar | region | |
Settings | Editor settings | region | Used for both the Settings sidebar and the Styles sidebar |
Toolbar | no change | navigation | |
Top bar | Editor top bar | region | |
Widgets and blocks | no change | region |
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 ❤️
@afercia
'Footer': doesn't tell what it is about and where it belongs.
Should probably call this breadcrumbs? I think that is the only thing in it. This does not make much sense really.
'Toolbar' and 'Top bar': what's the difference? What are they all about?
No idea. Is toolbar referring to the block formatting toolbar?
In case you weren't aware, may want to follow this conversation to ensure consistent terms are used - https://github.com/WordPress/gutenberg/discussions/49837
@alexstine
No idea. Is toolbar referring to the block formatting toolbar?
'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.
@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.
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>
element)<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:
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:
Landmarks in the Site Editor:
<nav>
element)Landmarks in the Widgets page:
For better consistency, this should be improved in order to:
Cc @alexstine
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