From 5aee5a01b4c088f42e23203a5245bbac6a6cc9c4 Mon Sep 17 00:00:00 2001 From: akasunil Date: Sat, 27 Jul 2024 22:23:05 +0530 Subject: [PATCH 1/2] Add border support to post excerpt block --- packages/block-library/src/post-excerpt/block.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/block-library/src/post-excerpt/block.json b/packages/block-library/src/post-excerpt/block.json index 9809d10ab426b4..61888ced43e67d 100644 --- a/packages/block-library/src/post-excerpt/block.json +++ b/packages/block-library/src/post-excerpt/block.json @@ -56,6 +56,18 @@ }, "interactivity": { "clientNavigation": true + }, + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true, + "__experimentalDefaultControls": { + "radius": true, + "color": true, + "width": true, + "style": true + } } }, "editorStyle": "wp-block-post-excerpt-editor", From 763f78d4ba16e957ffaa7713015a54f96215f1e6 Mon Sep 17 00:00:00 2001 From: akasunil Date: Mon, 29 Jul 2024 14:45:43 +0530 Subject: [PATCH 2/2] add box sizing style to excerpt block --- packages/block-library/src/post-excerpt/style.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/block-library/src/post-excerpt/style.scss b/packages/block-library/src/post-excerpt/style.scss index 1562bca962c1c9..b44108f67b5dd5 100644 --- a/packages/block-library/src/post-excerpt/style.scss +++ b/packages/block-library/src/post-excerpt/style.scss @@ -1,5 +1,8 @@ // Lowest specificity on wrapper margins to avoid overriding layout styles. :where(.wp-block-post-excerpt) { + // This block has customizable padding, border-box makes that more predictable. + box-sizing: border-box; + margin-top: var(--wp--style--block-gap); margin-bottom: var(--wp--style--block-gap); }