Skip to content

Commit e30a28d

Browse files
authored
Adding spacing block supports to spacer block (#43366)
1 parent 61aad4a commit e30a28d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/reference-guides/core-blocks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ Add white space between blocks and customize its height. ([Source](https://githu
770770

771771
- **Name:** core/spacer
772772
- **Category:** design
773-
- **Supports:** anchor
773+
- **Supports:** anchor, spacing (margin)
774774
- **Attributes:** height, width
775775

776776
## Table

packages/block-library/src/spacer/block.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@
1717
},
1818
"usesContext": [ "orientation" ],
1919
"supports": {
20-
"anchor": true
20+
"anchor": true,
21+
"spacing": {
22+
"margin": [ "top", "bottom" ],
23+
"__experimentalDefaultControls": {
24+
"margin": true
25+
}
26+
}
2127
},
2228
"editorStyle": "wp-block-spacer-editor",
2329
"style": "wp-block-spacer"

0 commit comments

Comments
 (0)