Skip to content

Commit

Permalink
List block: add color controls.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill committed Apr 3, 2020
1 parent 7601a5a commit 40e3357
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const settings = {
],
supports: {
className: false,
__experimentalColor: true,
__unstablePasteTextInline: true,
lightBlockWrapper: true,
},
Expand Down
12 changes: 12 additions & 0 deletions packages/block-library/src/list/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
:root {
ol,
ul {
background-color: var(--wp--color--background);
color: var(--wp--color--text);
}
}

ol.has-background,
ul.has-background {
padding: $block-bg-padding--v $block-bg-padding--h;
}
1 change: 1 addition & 0 deletions packages/block-library/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@import "./image/style.scss";
@import "./latest-comments/style.scss";
@import "./latest-posts/style.scss";
@import "./list/style.scss";
@import "./media-text/style.scss";
@import "./navigation/style.scss";
@import "./paragraph/style.scss";
Expand Down

0 comments on commit 40e3357

Please sign in to comment.