From 2036d7ed957b1b83436a673824a7511cfc9ee5ba Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Fri, 25 Oct 2024 18:21:19 +0900 Subject: [PATCH] Button Block: Apply Stretch Styles Correctly (#64770) Unlinked contributors: joecsmalley. Co-authored-by: t-hamano Co-authored-by: tellthemachines Co-authored-by: jasmussen Co-authored-by: ethanclevenger91 Co-authored-by: jordesign Co-authored-by: jennydupuy --- packages/block-library/src/button/style.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/block-library/src/button/style.scss b/packages/block-library/src/button/style.scss index 42306cba0c984..a8f625b95c392 100644 --- a/packages/block-library/src/button/style.scss +++ b/packages/block-library/src/button/style.scss @@ -9,6 +9,9 @@ $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; + height: 100%; + width: 100%; + align-content: center; &.aligncenter { text-align: center;