Skip to content
Discussion options

You must be logged in to vote

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:

  "supports": {
    "spacing": {
      "margin": true,
      "padding": true,
      "__experimentalDefaultControls": {
        "margin": false,
        "padding": false
      }
    }
  },

It looks like it might be stabilizing to defaultControls in #67018 ... edit: it's been un-stabilized again in #68163

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TonyNguyen137
Comment options

Answer selected by TonyNguyen137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants