From 4b941e505e6adc84d68534f12eb5fc53ce107558 Mon Sep 17 00:00:00 2001 From: Staci Cooper Date: Thu, 16 Sep 2021 14:06:28 -0700 Subject: [PATCH] Override block editor margins in non-blocks themes --- packages/block-library/src/buttons/editor.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/block-library/src/buttons/editor.scss b/packages/block-library/src/buttons/editor.scss index 427bbd4435190..d3eed8d5fbf8e 100644 --- a/packages/block-library/src/buttons/editor.scss +++ b/packages/block-library/src/buttons/editor.scss @@ -7,6 +7,11 @@ $blocks-block__margin: 0.5em; } .wp-block-buttons { + // Specificity needed to override editor auto block margins. + > .wp-block.wp-block-button { + margin: 0; + } + > .block-list-appender { display: inline-flex; align-items: center;