Skip to content

Commit

Permalink
Buttons: add box-sizing:border-box rule (WordPress#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 huubl committed Oct 2, 2024
1 parent a5d48bc commit 24d0930
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 24d0930

Please sign in to comment.