From 897b45b264ea227ef8c1d112e5b61bc7de2c0ed8 Mon Sep 17 00:00:00 2001 From: ramonjd Date: Thu, 18 Aug 2022 19:52:16 +1000 Subject: [PATCH] Adding spacing block supports to spacer block --- 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 f5285fa8149ac..a8a6ed2d503c4 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 ed54263b879f1..021ff9f4a2de3 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"