-
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
Inability to distinguish between default and none margin/padding values #68069
Comments
Thanks for the issue. This represents a smaller part of a wider issue: Since #65071, global styles changed from being only able to be read by admins, to any users that can edit posts. Which is a long way of saying that global styles are now available in the post editor context. This means that "default" values, by which I think you mean values inherited from the theme or global styles, can be referenced and even set in the control. An example of this working is the background image control. Other controls, such as spacing, haven't had the same treatment. It think it needs some UX and design thoughts, but the low-fi approach would be to set the control values with the default if any are found. Easy to say that 😄 but it might work for things like spacing. |
Thanks for the follow up comments @luisherranz
Sorry, I meant, for block styles:
Any changes to the control's value would only affect the block. And "resetting" the control would "reset" to the default global styles value. If there's none, then to null/zero/whatever. Background image controls already do this, I'm pretty sure. I think we're on the same page 😄 and I agree - I hope one day #64670 will get some momentum. |
Perfect, thanks, @ramonjd 🙂 |
Description
In the Editor, it is not possible to visually differentiate between a margin or padding value that is set to the default and one that is explicitly set to "none" (0). Additionally, the UI does not clearly indicate that clicking the blue circle next to a margin/padding value will set it to "none." This lack of clarity can lead to confusion and make it difficult to manage spacing effectively.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
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.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: