-
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
Block supports: margin/padding controls not showing in the Block Editor when enabled at theme.json settings block level. #34766
Comments
cc @oandregal who might just know what's going on off the top of his head! 😆 also cc @aaronrobertshaw who noticed this problem as well and helped me test. |
I can't yet speak to what the exact issue or cause is but I can add some extra details around what I've seen so far.
I'll continue debugging and testing this tomorrow if no one finds a solution before then. |
Aside from the reducing spacing around the input controls, it works as expected using #34725
Sounds like you're on to something. When I set |
There is a separate component for the virtual bubbling Slot which introduces a |
Retested now that #34725 is merged. I can no longer replicate. 👍 |
Description
Setting
customMargin
and/orcustomPadding
totrue
insettings.blocks[ $block_name ].spacing
in theme.json has no effect in the Block Editor when trying to enable spacing block supports.Step-by-step reproduction instructions
Enable margin and padding spacing support for the Group Block in
packages/block-library/src/group/block.json
, e.g.,Enable block supports specifically for Group Block in theme.json, e.g.,
Note that we've disabled
customMargin
andcustomPadding
at the root level of settings.In the Block Editor, insert a Group Block, then toggle the spacing controls under the Dimensions Panel.
See that padding/margin controls are enabled, but they don't appear when toggling using the Tools Panel.
Screenshots, screen recording, code snippet
I haven't backtraced everything fully yet, but I suspect that we're not merging the block-level settings somewhere correctly (?)
Environment info
WordPress 5.8
Gutenberg 11.5
TT1 Blocks and Twenty Twenty One
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: