Skip to content

Commit

Permalink
Override margins for the block appender as well as the button
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc committed Oct 7, 2021
1 parent a431d40 commit cf4d1a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/block-library/src/buttons/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ $blocks-block__margin: 0.5em;
}

.wp-block-buttons {
// Specificity needed to override editor auto block margins.
// Override editor auto block margins for button as well as the block appender.
> .wp-block {
margin: 0;
}

// Specificity needed in some themes to override editor auto block margins for the button.
> .wp-block.wp-block-button {
margin: 0;
}
Expand Down

0 comments on commit cf4d1a1

Please sign in to comment.