From 7e66fe3407a0878cd5e6df513353eac896a0faa5 Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Thu, 18 Aug 2022 13:38:06 +1000 Subject: [PATCH] Add margin/padding support to archive block --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/archives/block.json | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index faef91da28ba36..ca877f239316f6 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -14,7 +14,7 @@ Display a date archive of your posts. ([Source](https://github.com/WordPress/gut - **Name:** core/archives - **Category:** widgets -- **Supports:** align, ~~html~~ +- **Supports:** align, spacing (margin, padding), ~~html~~ - **Attributes:** displayAsDropdown, showLabel, showPostCounts, type ## Audio diff --git a/packages/block-library/src/archives/block.json b/packages/block-library/src/archives/block.json index d40c4618365c44..e5c81ac975d50a 100644 --- a/packages/block-library/src/archives/block.json +++ b/packages/block-library/src/archives/block.json @@ -26,7 +26,11 @@ }, "supports": { "align": true, - "html": false + "html": false, + "spacing": { + "margin": true, + "padding": true + } }, "editorStyle": "wp-block-archives-editor" }