-
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
[Site Editor] Spacing values declared as variable have no effect in the site editor. #43042
Comments
I think this commit in #42173 might address the issue. |
Yes, @Gierand, the above PR should resolve this issue, and also adds the UI for selecting the spacing presets for padding in the block and site editor. Something else to note about the changes in that PR is that the spacing scale provided by core will be reduced from 10 to 7 levels which gives 3 sizes each side of medium (2XS, XS, S, M, L, XL, 2XL), so the |
@glendaviesnz, thank you for the clarification. However, I have a question. Will |
That would be the ideal, and there is a task listed in the tracking issue to follow up on this. To do this we just need to make sure that we can conditionally load these class definitions based on the block content of the current page as loading all of them would add a lot of additional CSS to every page as classes and property definitions are needed for every side for every step in the scale, eg. |
Closing this as the outstanding bug has been moved to a separate issue. |
Description
When we add variable values to the spacing in the theme.json file, no change occurs.
Step-by-step reproduction instructions
Try changing the settings in theme.json using the following code snippet example.
The problem is not only with the buttons, but also with the rest of the blocks.
Screenshots, screen recording, code snippet
Frontend:
Site Editor:
Environment info
WordPress version: 6.0.1 and 6.1-alpha-53848
Gutenberg version: 13.9.20220805
Theme: TT2
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: