From bff944fd9dfe79f9eb0c4de93f3ada01de9404a9 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Mon, 2 Dec 2019 11:30:49 +0100 Subject: [PATCH 1/2] Remove horizontal margin from generic appender. This became unnecessary with #17877. --- .../block-editor/src/components/block-list-appender/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 5f83d4b44b290b..a219f668134486 100644 --- a/packages/block-editor/src/components/block-list-appender/style.scss +++ b/packages/block-editor/src/components/block-list-appender/style.scss @@ -1,7 +1,7 @@ // These styles are only applied to the appender when it appears inside of a block. // Otherwise the default appender may be improperly positioned in some themes. .block-editor-block-list__block .block-list-appender { - margin: $block-padding; + margin: $block-padding 0; // Add additional margin to the appender when inside a group with a background color. // If changing this, be sure to sync up with group/editor.scss line 13. From 3d18adfad1a94bcbae2e0252eaa73edce7a7d999 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Mon, 2 Dec 2019 11:33:58 +0100 Subject: [PATCH 2/2] Fix similar issue for columns. --- packages/block-library/src/columns/editor.scss | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/block-library/src/columns/editor.scss b/packages/block-library/src/columns/editor.scss index 99790414819a20..17d9a5a7b12afe 100644 --- a/packages/block-library/src/columns/editor.scss +++ b/packages/block-library/src/columns/editor.scss @@ -126,12 +126,6 @@ margin-top: $block-padding*2; margin-bottom: $block-padding*2; } - - // When the individual column block is selected, the nested padding overrules - // some of this margin. We need to adjust the appender spacing again as a result. - [data-type="core/column"].is-selected .block-list-appender { - margin: $block-padding 0; - } } /**