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 <wildworks@git.wordpress.org>
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
  • Loading branch information
3 people authored Oct 1, 2024
1 parent f5d3099 commit 40ceb00
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 40ceb00

Please sign in to comment.