How to deselect padding & margin in the Inspector panel of your custom Gutenberg block? #69719
-
|
Hello, However, it doesn’t seem to work for custom Gutenberg blocks by default. I am using a custom theme that is nearly empty. Configuration Details //block.json - in plugins/custom-plugin I might have overlooked something—is there anything else I need to configure to make this work? I am just a newbie. Any insights would be greatly appreciated! Thank you for your time and help! 🙌 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @TonyNguyen137 the ability for editors to toggle individual controls is made possible by defining some as "default controls" (always visible) and others as "not default controls" (start invisible and can be toggled on). I was able to make margin and padding controls toggle on and off in the block editor on a custom block with the following in
|
Beta Was this translation helpful? Give feedback.


Hi @TonyNguyen137 the ability for editors to toggle individual controls is made possible by defining some as "default controls" (always visible) and others as "not default controls" (start invisible and can be toggled on). I was able to make margin and padding controls toggle on and off in the block editor on a custom block with the following in
block.json:It looks like it might be stabilizing to... edit: it's been un-stabilized again in #68163defaultControlsin #67018