From fc3d6b934059b7ff29afdef84e2cbe870795b835 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Fri, 22 Apr 2022 12:15:31 -0400 Subject: [PATCH] Separator Block: Add top & bottom margin support --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/separator/block.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 08367cb90f925..8f57ca3c6b977 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -725,7 +725,7 @@ Create a break between ideas or sections with a horizontal separator. ([Source]( - **Name:** core/separator - **Category:** design -- **Supports:** align (center, full, wide), anchor, color (background, gradients, ~~text~~) +- **Supports:** align (center, full, wide), anchor, color (background, gradients, ~~text~~), spacing (margin) - **Attributes:** opacity ## Shortcode diff --git a/packages/block-library/src/separator/block.json b/packages/block-library/src/separator/block.json index 384d3826f34ed..ea37e4ea41065 100644 --- a/packages/block-library/src/separator/block.json +++ b/packages/block-library/src/separator/block.json @@ -24,6 +24,9 @@ "__experimentalDefaultControls": { "background": true } + }, + "spacing": { + "margin": [ "top", "bottom" ] } }, "styles": [