-
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
Global Styles: Add padding server-side block support #30332
Conversation
Size Change: +805 B (0%) Total Size: 1.42 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works well! I also tested with some blocks like heading
that when you add background
some padding
is applied, but if they have padding
support it keeps the proper one from padding.
I pre-approve even if I left some small comments because more usage of gutenberg_block_has_support
could be in a follow up.
Thanks Riad!
With the new changes there is a warning in
|
Good catch, it should be fixed |
LGTM! 🚢 |
Related #28356
This PR adds the padding block support flag server-side allowing dynamic blocks to use it.
At the moment, it doesn't enable it for any block though (I'll leave that for you all designers to enable it on the blocks you like).
Testing instructions
spacing: { padding: true }
to theblock.json
of the dynamic block where you want to enable padding support.