From bd9b95f9a27c8598ebec924471fc8d1260347532 Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Mon, 30 Jan 2023 14:29:36 +1100 Subject: [PATCH] Revert button --- packages/block-library/src/button/style.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/button/style.scss b/packages/block-library/src/button/style.scss index 8a203c1117c3e..b4fa27709696e 100644 --- a/packages/block-library/src/button/style.scss +++ b/packages/block-library/src/button/style.scss @@ -9,8 +9,6 @@ $blocks-block__margin: 0.5em; text-align: center; word-break: break-word; // overflow-wrap doesn't work well if a link is wrapped in the div, so use word-break here. box-sizing: border-box; - // Stretch to button width if it is set. - width: 100%; &.aligncenter { text-align: center; @@ -44,6 +42,9 @@ $blocks-block__margin: 0.5em; .wp-block-buttons > .wp-block-button { &.has-custom-width { max-width: none; + .wp-block-button__link { + width: 100%; + } } &.has-custom-font-size {