-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 Gap: supplying a variable does not work in the view #39583
Comments
I've spent some time looking at this, and I think I can see where the difference sits between how the editor handles the blockGap value and how it's output by layout based blocks. In However, the above is only applied on the front end. In the editor, it looks like the blockGap values are applied using To make this consistent, and assuming we don't want to allow CSS variables for blockGap, perhaps we should apply the same filter rule to the editor as well, within |
Hi, |
Support for using CSS variables for the blockGap value in block attributes was introduced across #43296 and #43466, via the form
I believe that resolves the issue described here, so I'll close this out. Thanks for reporting! |
Description
If I supply a CSS variable value to the blockGap attribute for a block that supports gap, it is not respected in the view. It does in the editor.
Step-by-step reproduction instructions
blockGap
:Screenshots, screen recording, code snippet
No response
Environment info
trunk
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: