From 58f62cf9c6cc426437c06a19a65f2f8140548310 Mon Sep 17 00:00:00 2001 From: Sunil Prajapati <61308756+akasunil@users.noreply.github.com> Date: Thu, 18 Jul 2024 14:05:21 +0530 Subject: [PATCH] Term Description: Add border block support (#63630) * Add border support to term description block * Add box sizing style to term description block Co-authored-by: akasunil Co-authored-by: aaronrobertshaw --- .../block-library/src/term-description/block.json | 12 ++++++++++++ .../block-library/src/term-description/style.scss | 2 ++ 2 files changed, 14 insertions(+) diff --git a/packages/block-library/src/term-description/block.json b/packages/block-library/src/term-description/block.json index 7a3f27c8063ab..dc27fc17df789 100644 --- a/packages/block-library/src/term-description/block.json +++ b/packages/block-library/src/term-description/block.json @@ -40,6 +40,18 @@ }, "interactivity": { "clientNavigation": true + }, + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true, + "__experimentalDefaultControls": { + "radius": true, + "color": true, + "width": true, + "style": true + } } } } diff --git a/packages/block-library/src/term-description/style.scss b/packages/block-library/src/term-description/style.scss index bd455f7a68d3d..1649a8d80c8f1 100644 --- a/packages/block-library/src/term-description/style.scss +++ b/packages/block-library/src/term-description/style.scss @@ -1,5 +1,7 @@ // Lowest specificity on wrapper margins to avoid overriding layout styles. :where(.wp-block-term-description) { + // 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); }