From 5e9f8d238ddecd06ffce9a91fbf0b9b3ec543ffc Mon Sep 17 00:00:00 2001 From: Nick Diego Date: Sun, 21 Aug 2022 21:53:34 -0500 Subject: [PATCH] Adding spacing support to paragraphs. (#43455) --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/paragraph/block.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 15cf7289f3a9e..5330036691e56 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -437,7 +437,7 @@ Start with the basic building block of all narrative. ([Source](https://github.c - **Name:** core/paragraph - **Category:** text -- **Supports:** __unstablePasteTextInline, anchor, color (background, gradients, link, text), typography (fontSize, lineHeight), ~~className~~ +- **Supports:** __unstablePasteTextInline, anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~className~~ - **Attributes:** align, content, direction, dropCap, placeholder ## Pattern diff --git a/packages/block-library/src/paragraph/block.json b/packages/block-library/src/paragraph/block.json index 335f53e81d442..d1681d165368c 100644 --- a/packages/block-library/src/paragraph/block.json +++ b/packages/block-library/src/paragraph/block.json @@ -41,6 +41,10 @@ "text": true } }, + "spacing": { + "margin": true, + "padding": true + }, "typography": { "fontSize": true, "lineHeight": true,