Skip to content

Commit

Permalink
Button Block: Apply Stretch Styles Correctly (WordPress#64770)
Browse files Browse the repository at this point in the history
Unlinked contributors: joecsmalley.

Co-authored-by: t-hamano <[email protected]>
Co-authored-by: tellthemachines <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: ethanclevenger91 <[email protected]>
Co-authored-by: jordesign <[email protected]>
Co-authored-by: jennydupuy <[email protected]>
  • Loading branch information
7 people authored Oct 25, 2024
1 parent 7dbe0be commit 2036d7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2036d7e

Please sign in to comment.