Skip to content

Commit 2036d7e

Browse files
t-hamanotellthemachinesjasmussenethanclevenger91jordesign
authored
Button Block: Apply Stretch Styles Correctly (#64770)
Unlinked contributors: joecsmalley. Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: ethanclevenger91 <eclev91@git.wordpress.org> Co-authored-by: jordesign <jordesign@git.wordpress.org> Co-authored-by: jennydupuy <jdy68@git.wordpress.org>
1 parent 7dbe0be commit 2036d7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/block-library/src/button/style.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ $blocks-block__margin: 0.5em;
99
text-align: center;
1010
word-break: break-word; // overflow-wrap doesn't work well if a link is wrapped in the div, so use word-break here.
1111
box-sizing: border-box;
12+
height: 100%;
13+
width: 100%;
14+
align-content: center;
1215

1316
&.aligncenter {
1417
text-align: center;

0 commit comments

Comments
 (0)