-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 Supports: Allow skipping serialization of border #30035
Block Supports: Allow skipping serialization of border #30035
Conversation
@nosolosw Can I get a super early review here? I'm not sure if I'm missing any big pieces; it's a bit hard to tell since I can't get the border settings to show for the Group and Image blocks at all (even on |
Size Change: +8.73 kB (+1%) Total Size: 1.41 MB
ℹ️ View Unchanged
|
Sharing here some testing instructions for this PR: How to test:
The expected result is that:
|
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 is working properly with the fix at https://github.com/WordPress/gutenberg/pull/30035/files#r598898672
A good next step would be to use this new feature to add support for border via the hooks in the button block, which is using custom UI controls at the moment.
Co-authored-by: André <[email protected]>
Thanks André! I've applied the fix, and verified that it yields the desired results.
I'll tackle that next 👍 |
Description
Part of #28913. Counterpart to #29142 and #29253.
Find affected blocks by grepping
__experimentalBorder
inblock.json
files. This yields theblocks.
How has this been tested?
TBD.
I don't even see the border radius panel for the Group and Image onEdit: I just noticed instructions over at #27667, will try those on Monday.trunk
.Anyway, this will need adding
"__experimentalSkipSerialization": true
to the__experimentalBorder
object in theblock.json
files of the Group and Image blocks:Screenshots
TBD