From 61c3706ca3f2745de01263de5e30701c6bd61019 Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Tue, 15 Dec 2020 12:04:18 +0000 Subject: [PATCH 1/3] Verse Block: Add support for custom colors --- docs/designers-developers/developers/themes/theme-json.md | 1 + packages/block-library/src/verse/block.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/designers-developers/developers/themes/theme-json.md b/docs/designers-developers/developers/themes/theme-json.md index eedc3278c3b302..5e6aaaeb9f5d85 100644 --- a/docs/designers-developers/developers/themes/theme-json.md +++ b/docs/designers-developers/developers/themes/theme-json.md @@ -335,6 +335,7 @@ These are the current color properties supported by blocks: | Site Tagline | Yes | Yes | - | Yes | | Site Title | Yes | Yes | - | Yes | | Template Part | Yes | Yes | Yes | Yes | +| Verse | Yes | Yes | Yes | Yes | [1] The heading block represents 6 distinct HTML elements: H1-H6. It comes with selectors to target each individual element (ex: core/heading/h1 for H1, etc). diff --git a/packages/block-library/src/verse/block.json b/packages/block-library/src/verse/block.json index ce6936ab7f40cd..eb9c8fb3fc851a 100644 --- a/packages/block-library/src/verse/block.json +++ b/packages/block-library/src/verse/block.json @@ -16,6 +16,10 @@ }, "supports": { "anchor": true, + "color": { + "gradients": true, + "link": true + }, "__experimentalFontFamily": true }, "style": "wp-block-verse", From 3926662776da51c30287e73de2695ffe0636ec70 Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Tue, 15 Dec 2020 12:09:49 +0000 Subject: [PATCH 2/3] remove colors from editor --- packages/block-library/src/verse/editor.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/block-library/src/verse/editor.scss b/packages/block-library/src/verse/editor.scss index 737bfc159ffc9a..f52d484f4e22b3 100644 --- a/packages/block-library/src/verse/editor.scss +++ b/packages/block-library/src/verse/editor.scss @@ -1,5 +1,4 @@ pre.wp-block-verse { - color: $gray-900; white-space: nowrap; font-size: inherit; padding: 1em; From 4149c33d7911d766105e367c9cea44e59223f4de Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Mon, 12 Apr 2021 10:17:51 -0400 Subject: [PATCH 3/3] Remove unused CSS file. --- packages/block-library/src/editor.scss | 1 - packages/block-library/src/verse/editor.scss | 6 ------ 2 files changed, 7 deletions(-) delete mode 100644 packages/block-library/src/verse/editor.scss diff --git a/packages/block-library/src/editor.scss b/packages/block-library/src/editor.scss index 9cd49fb82cfed7..cef09dbb86549b 100644 --- a/packages/block-library/src/editor.scss +++ b/packages/block-library/src/editor.scss @@ -44,7 +44,6 @@ @import "./tag-cloud/editor.scss"; @import "./template-part/editor.scss"; @import "./text-columns/editor.scss"; -@import "./verse/editor.scss"; @import "./video/editor.scss"; @import "./query-title/editor.scss"; @import "./query-loop/editor.scss"; diff --git a/packages/block-library/src/verse/editor.scss b/packages/block-library/src/verse/editor.scss deleted file mode 100644 index f52d484f4e22b3..00000000000000 --- a/packages/block-library/src/verse/editor.scss +++ /dev/null @@ -1,6 +0,0 @@ -pre.wp-block-verse { - white-space: nowrap; - font-size: inherit; - padding: 1em; - overflow: auto; -}