From e30a28def89059bae9b035714f56ece79bcee209 Mon Sep 17 00:00:00 2001 From: Ramon Date: Fri, 19 Aug 2022 14:11:34 +1000 Subject: [PATCH] Adding spacing block supports to spacer block (#43366) --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/spacer/block.json | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 6c37192d1799d8..4280b5ff370e9e 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -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 diff --git a/packages/block-library/src/spacer/block.json b/packages/block-library/src/spacer/block.json index ed54263b879f19..021ff9f4a2de33 100644 --- a/packages/block-library/src/spacer/block.json +++ b/packages/block-library/src/spacer/block.json @@ -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"