From c7f81b25bd43e721ff652efe0d70f954b5157007 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Sat, 28 Sep 2024 22:22:18 +0900 Subject: [PATCH] Buttons: add box-sizing:border-box rule --- packages/block-library/src/buttons/style.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/block-library/src/buttons/style.scss b/packages/block-library/src/buttons/style.scss index 8492553bd50b8..e563f3957f374 100644 --- a/packages/block-library/src/buttons/style.scss +++ b/packages/block-library/src/buttons/style.scss @@ -2,6 +2,8 @@ $blocks-block__margin: 0.5em; .wp-block-buttons { + // This block has customizable padding, border-box makes that more predictable. + box-sizing: border-box; &.is-vertical { flex-direction: column;