From 1472e1ac6294f50929f0e13183a0d48b3ae5b6f1 Mon Sep 17 00:00:00 2001 From: ramonjd Date: Mon, 27 Jun 2022 12:24:49 +1000 Subject: [PATCH] Adding axial top bottom margin to the cover block. Regenerated docs --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/cover/block.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 84eb3da923e718..b44df884b338c7 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -230,7 +230,7 @@ Add an image or video with a text overlay — great for headers. ([Source](https - **Name:** core/cover - **Category:** media -- **Supports:** align, anchor, color (~~background~~, ~~text~~), spacing (padding), ~~html~~ +- **Supports:** align, anchor, color (~~background~~, ~~text~~), spacing (margin, padding), ~~html~~ - **Attributes:** allowedBlocks, alt, backgroundType, contentPosition, customGradient, customOverlayColor, dimRatio, focalPoint, gradient, hasParallax, id, isDark, isRepeated, minHeight, minHeightUnit, overlayColor, templateLock, url, useFeaturedImage ## Embed diff --git a/packages/block-library/src/cover/block.json b/packages/block-library/src/cover/block.json index f908f544fb2974..fc651831628848 100644 --- a/packages/block-library/src/cover/block.json +++ b/packages/block-library/src/cover/block.json @@ -83,6 +83,7 @@ "html": false, "spacing": { "padding": true, + "margin": [ "top", "bottom" ], "__experimentalDefaultControls": { "padding": true }