Skip to content

Commit

Permalink
Fix padding regression with appender (#18865)
Browse files Browse the repository at this point in the history
* Remove horizontal margin from generic appender.

This became unnecessary with #17877.

* Fix similar issue for columns.
  • Loading branch information
jasmussen authored Dec 2, 2019
1 parent b59ef1e commit b02920d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 0 additions & 6 deletions packages/block-library/src/columns/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

/**
Expand Down

0 comments on commit b02920d

Please sign in to comment.