Skip to content

Instantly share code, notes, and snippets.

@aaronrobertshaw
Created June 8, 2021 08:51
Show Gist options
  • Select an option

  • Save aaronrobertshaw/64669b3a4c5443c3b0af28f49deffc36 to your computer and use it in GitHub Desktop.

Select an option

Save aaronrobertshaw/64669b3a4c5443c3b0af28f49deffc36 to your computer and use it in GitHub Desktop.
Group block.json enabling spacing support and showing margin/padding controls by default
{
"apiVersion": 2,
"name": "core/group",
"title": "Group",
"category": "design",
"description": "Combine blocks into a group.",
"keywords": [ "container", "wrapper", "row", "section" ],
"textdomain": "default",
"attributes": {
"tagName": {
"type": "string",
"default": "div"
},
"templateLock": {
"enum": [ "all", "insert", false ]
}
},
"supports": {
"align": [ "wide", "full" ],
"anchor": true,
"html": false,
"color": {
"gradients": true,
"link": true
},
"spacing": {
"margin": true,
"padding": true,
"__experimentalDefaultControls": {
"padding": true,
"margin": true
}
},
"__experimentalBorder": {
"color": true,
"radius": true,
"style": true,
"width": true
},
"__experimentalLayout": true
},
"editorStyle": "wp-block-group-editor",
"style": "wp-block-group"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment