From 24d0930ec31ce918d9c91475fd4fc7df25984afa Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Tue, 1 Oct 2024 10:49:00 +0900 Subject: [PATCH] Buttons: add box-sizing:border-box rule (#65716) Co-authored-by: t-hamano Co-authored-by: aaronrobertshaw --- 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 8492553bd50b81..e563f3957f3746 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;