Skip to content

Commit

Permalink
Include margin in width calc for 100% button when it has sibling butt…
Browse files Browse the repository at this point in the history
…ons (#29794)
  • Loading branch information
stacimc authored Apr 29, 2021
1 parent b4921d9 commit cec7a68
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/block-library/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ $blocks-block__margin: 0.5em;
}

&.wp-block-button__width-100 {
margin-right: 0;
width: 100%;
width: calc(100% - #{ $blocks-block__margin });

&:only-child {
margin-right: 0;
width: 100%;
}
}
}

Expand Down

0 comments on commit cec7a68

Please sign in to comment.