Skip to content

Commit

Permalink
Buttons: add box-sizing:border-box rule (#65716)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
  • Loading branch information
3 people authored and draganescu committed Oct 2, 2024
1 parent 9c64c8c commit fd467a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-library/src/buttons/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
$blocks-block__margin: 0.5em;

.wp-block-buttons {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;

&.is-vertical {
flex-direction: column;
Expand Down

0 comments on commit fd467a8

Please sign in to comment.