-
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
Block settings: Change "Apply globally" to secondary button styling to lower prominence #61834
Comments
Yep, let's get a dev on this. Do we already have a confirm "are you sure" dialog when applying this? I don't personally think one is necessary, but it's a second step we can take if this in effect is a destructive action. |
There are currently no modal dialog. Should we add a dialog as suggested in #57740? |
I'd love to probably follow up with a "don't show again" to such a dialog. That would be the only thing. |
I have raised a PR for changing the |
I noticed that the |
That would be good, while you're there. |
In my experience, secondary buttons are used in either of the following contexts: Are side actions: Examples of the Query Loop block and the Image block When opening a dialog: Example of the Font Library Modal button and the Patterns Modal button When I think about it this way, I feel like the current style is fine. Or should we change the "Enable/Disable override" button to the primary button as well? In any case, I think the height of the buttons should be the same. |
I agree with the @t-hamano, Secondary button styles are used when we need to do some side actions rather that what is "primary". So instead of making Further as an example, If we can select any block and check the Also, If we made this change, Thank You ✨. |
Hi @t-hamano, I agree with you, and I also have a suggestion regarding the button hierarchy for better clarity. What if we make the
Additionally, I see that the
I believe it would not be ideal to keep both buttons as primary. Having two primary buttons can dilute the focus and importance of each action, potentially confusing users about which action is more critical in the given context.
For making both the buttons have consistent height, we can also remove the Let me know your thoughts on this approach. |
My rule of thumb here is to apply these styles very judiciously according to context and prominence. In some cases, they need a fill or a border in order to distinguish themselves from the context, in others they need a box to make the grid align, and in still others it's useful to have a visual hierarchy. That's also to say, that I don't know that we can formulate a hard guideline for when to use this or that. Honestly I wish we had called the buttons something other than primary, secondary, tertiary, because those names suggest a hierarchy where none need to exist. Insofar as: these are not like headings, where you must only ever use an h3 if there's an h2 above it. For this particular context, full-width buttons in the inspector, primary and secondary are both shapes that work well. However I would go with the outline/secondary style here, specifically to manage prominence. In this case, the hierarchy of the button names match that of their action: these actions are not primary. |
Hi folks, this is the PR that is approved for this issue. But looking at the last comment, are there any changes required from my side? |
Yes, I'd think we'd want to use the secondary style for all instances of these buttons, both enable overrides and apply globally, if they aren't already. Amit if you can check both the post editor and site editors, according to Aki's instructions, that would be useful, thank you. |
I have verified that the PR I created is correctly applying the secondary style to both the
|
While testing overrides in synced patterns, I noticed that the prominence of "apply globally" really stands out even more when we have now the option to enable/disable overrides:
To create more of a balance here, I propose we change the "apply globally" option to be a secondary button styling rather than primary like so:
If anything, I see creating overrides as being more of a common action than taking an individual styling and applying it globally but, at the least, we should have equal weighting here in my opinion. cc @WordPress/gutenberg-design for thoughts!
The text was updated successfully, but these errors were encountered: