-
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
Layout Styles: Adding block gap global styles does not work for Columns block #61849
Comments
Hi 👋🏻 I also have the same issue. Using WordPress 6.5.5 I will try to dig the issue and will tell you if I found any fix. |
Hi 👋🏻 Still haven't found any fix for this issue 😬 What about you ? |
Sorry for the delay in replying @ltrihan 🙇 I've been digging into this issue and it appears to have been around for a long time. I need a little more time to prove some of the hunches/explanations I have aren't just red herrings. For the time being though this is what (I think) I have found:
Again, take this with a grain of salt. It's a complex area of the codebase and it's entirely possible I might have dropped the thread I was following and accidentally picked up an unrelated thread instead 😅 While we work on a solution, the following might be a workaround for you:
"core/columns": {
"spacing": {
"blockGap": {
"top": "var:preset|spacing|50",
"right": "var:preset|spacing|80",
"bottom": "var:preset|spacing|50",
"left": "var:preset|spacing|80"
}
}
},
Using the above config in TT5, it makes the Columns block work again for me. Same for the Buttons block. Depending on how much code needs tweaking, there's a small chance we can land a fix in 6.7 as it impacts TT5. Otherwise, it might go in a point release or the workaround in the TT5 theme for its initial launch. |
Given the discussion here, I am punting this to 6.7.1. |
Description
The application of block gap styles globally for Columns blocks works in the site editor but not the frontend or post editor. It does appear to be working for other blocks such as the Cover block.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Recording.2024-05-22.at.5.53.43.PM.mp4
Environment info
No response
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: