-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 push changes to global styles label text to "apply globally" #46965
Update push changes to global styles label text to "apply globally" #46965
Conversation
Size Change: +1.83 kB (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
Flaky tests detected in c444213. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3888008847
|
I've no issues with it. cc. @jasmussen for his thoughts as he worked on the design of this feature. Another suggestion was to make the button read "Apply to all Heading blocks". (Heading would be replaced with the selected block.) I think it might have caused issues with overflowing text though. What do you think? |
Thanks for taking a look!
Oh, that's a good point, I see from your discussion with Ramon that the button looks a bit busy if it winds up being forced to wrap: #46446 (comment) Happy to go with whatever folks, like, though... let's see what the designers think! |
I think it's best to keep the button label short, especially since the help text beneath describes the full behaviour. For the Snackbar, perhaps we can go even shorter: "Button styles updated". What do you think? |
@@ -137,7 +137,7 @@ function PushChangesToGlobalStylesControl( { | |||
disabled={ changes.length === 0 } | |||
onClick={ pushChanges } | |||
> | |||
{ __( 'Push changes to Global Styles' ) } | |||
{ __( 'Apply globally' ) } |
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.
Looking great!
We may also want to update the description (line 127) as discussed here
I made a small change to my own suggestion :) The Snackbar now reads: "Button styles applied." This harmonizes with the language in the button / description, and hopefully eliminates any confusion as to whether those changes have been saved or not. |
Thanks for updating this one @jameskoster! I've just updated the text in the e2e test to match, and will merge this in once the tests pass 🙂 |
Nice one! |
What?
Fixes #46928
Renames "Push changes to global styles" to "Apply globally" at the block level in the site editor.
Why?
As raised in #46928, this avoids referring to Global Styles as a proper noun, and instead the label text describes the action.
How?
Testing Instructions
Screenshots or screencast
The snackbar notification text is also updated: