Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Button Block: Apply Stretch Styles Correctly
  • Loading branch information
t-hamano committed Oct 25, 2024
commit 7683a26dd638b66bbcc1322a62adaedb6ad15c20
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