Rethink the Document Bar and the Post Summary title #65238
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Needs Design Feedback
Needs general design feedback.
[Package] Editor
/packages/editor
[Type] Bug
An existing feature does not function as intended
Description
See also #51460
I'd like to propose to completely rethink the editor Document Bar and the Post Summary title.
For better semantics, usability, and accessibility, two basic principles do apply in this scenario:
The Document Bar
The Document Bar implementation is less than ideal.
1
Starting from the basics, the rendered HTML is invalid HTML. In pseudo code, this is che HTML structure of the Document Bar:
New generations of JavaScript developers may not know much about HTML, as frameworks like React educate them to just use components with abstracts names and not care much about the actual rendered HTML. Still, WordPress should strive to always render valid HTML.
2
The button label doesn't communicate what the button actually does. The label is:
⌘K
e.g.:This is my post title ⌘K
.No title ⌘K
when there's no title.However, clicking the button opens the Command palette.
As such, the label of the button doesn't communicate what the button does. This button is just not the right place to show the edited object name or title. The title and the button to open the Command palette should be separated.
It is worht reminding that the Document bar may also visually include a button to 'Go back', depending on the edited object. Example screenshot:
Single Posts
.Editing template: Single Posts
.3
The Document bar button contains a H1 heading with the name or title od the edited object.
Edit Post
.Above: Screenshot to illustrate how the headings hierarchy and headings content are less than ideal.
Note: The HeadingsMap extension I used to take detect the headings isn't able to perceive the H1 in the editor canvas because it's in an iframe. Regardless, the post title in the editor canvas is one more H1 heading that repeats for the third time the post title.
Proposal
Commands
.Taking some inspiration from Google Docs:
The big advantage of this layout is that:
Screenshot to illustrate. Disclaimer: I'm not a designer so please bear with me and this very rough screenshot:
Related:
#503
#65167
Step-by-step reproduction instructions
N/A
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: