From 333668e7149a1f3f2a39810372ecb11422fe4f7c Mon Sep 17 00:00:00 2001 From: Marcus Kazmierczak Date: Mon, 2 Aug 2021 09:46:43 -0700 Subject: [PATCH] Fix justification for button block when selected (#33739) * Remove margin setting, auto right conflict with justify buttons * Per review, add little margin back --- .../src/components/block-list-appender/style.scss | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/block-editor/src/components/block-list-appender/style.scss b/packages/block-editor/src/components/block-list-appender/style.scss index 5079df7cdadbe..14c9301de6df1 100644 --- a/packages/block-editor/src/components/block-list-appender/style.scss +++ b/packages/block-editor/src/components/block-list-appender/style.scss @@ -14,10 +14,9 @@ margin: $grid-unit-10 0; } - // Add an explicit left margin of zero and auto right margin to work in horizontal - // flex containers. Without it, a "space-between"-like effect from two auto margins - // will cause the black plus to sit in the center of what space is left. - margin: 0 auto 0 0; + // Add a uniform margin around the block. + // This can hopefully avoid havoc in flex containers. + margin: $grid-unit-10; // Black square plus appender. .block-list-appender__toggle {