Skip to content

Commit

Permalink
Adding spacing block supports to spacer block (#43366)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd authored Aug 19, 2022
1 parent 61aad4a commit e30a28d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ Add white space between blocks and customize its height. ([Source](https://githu

- **Name:** core/spacer
- **Category:** design
- **Supports:** anchor
- **Supports:** anchor, spacing (margin)
- **Attributes:** height, width

## Table
Expand Down
8 changes: 7 additions & 1 deletion packages/block-library/src/spacer/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
},
"usesContext": [ "orientation" ],
"supports": {
"anchor": true
"anchor": true,
"spacing": {
"margin": [ "top", "bottom" ],
"__experimentalDefaultControls": {
"margin": true
}
}
},
"editorStyle": "wp-block-spacer-editor",
"style": "wp-block-spacer"
Expand Down

0 comments on commit e30a28d

Please sign in to comment.