-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update site editor region labels to match post editor #42037
Conversation
Size Change: +115 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a small comment about the missing label, but otherwise, this looks good to me. Thanks, @talldan!
body: __( 'Editor content' ), | ||
/* translators: accessibility text for the editor settings landmark region. */ | ||
sidebar: __( 'Editor settings' ), | ||
/* translators: accessibility text for the editor footer landmark region. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should also update the actions
landmark region label. Currently, it says "Publish".
gutenberg/packages/edit-post/src/components/layout/index.js
Lines 60 to 61 in f2888ed
/* translators: accessibility text for the editor publish landmark region. */ | |
actions: __( 'Editor publish' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure about this one. My thinking was that 'publish' isn't quite the right term in the site editor, but I didn't realise the default is already 'publish' 😄 . I thought it would be 'Actions'.
Thanks for reviewing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! I'm not sure what label will work for both editors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll keep it as 'Editor publish' for now as I don't have any better ideas.
a52aa16
to
81c8f9c
Compare
What?
Updates the site editor's region labels to match the post editor
Why?
The site editors labels were different for some reason.
Making them match the post editor is a good idea as it helps make the site editor experience familiar for screen reader users that already know the post editor.
It also makes it easier to write end to end test utilities that work across both editors.
How?
Add the strings, innit.
Testing Instructions
Expected: the labels for the editor topbar, editor settings, editor content and editor footer should match.