Skip to content

Commit

Permalink
Workaround for default editor styles overriding padding.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill committed Aug 3, 2020
1 parent 32b50e2 commit 3a943ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
@import "./latest-comments/editor.scss";
@import "./latest-posts/editor.scss";
@import "./legacy-widget/editor.scss";
@import "./list/editor.scss";
@import "./media-text/editor.scss";
@import "./more/editor.scss";
@import "./navigation/editor.scss";
Expand Down
7 changes: 7 additions & 0 deletions packages/block-library/src/list/editor.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Extra specificity required to override default editor styles, which are
// loaded after core block styles. If the load order changes, this rule can be
// removed. See https://github.com/WordPress/gutenberg/issues/24011.
ol.has-background.has-background,
ul.has-background.has-background {
padding: $block-bg-padding--v $block-bg-padding--h;
}

0 comments on commit 3a943ea

Please sign in to comment.