From 3e8d27384de16bfaaa866499686724b92ac8afaf Mon Sep 17 00:00:00 2001 From: Omar Alshaker Date: Tue, 3 Aug 2021 17:14:28 +0200 Subject: [PATCH] Add "color: initial" to preserve black color inside block-editor-plain-text block --- src/code-block/editor.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/code-block/editor.scss b/src/code-block/editor.scss index 2a5215a..c51e996 100644 --- a/src/code-block/editor.scss +++ b/src/code-block/editor.scss @@ -1 +1,6 @@ @import '../toolbar-dropdown/style' + +// to override the "color: inherit" value set here https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/src/components/plain-text/style.scss#L5 +.wp-block-syntaxhighlighter__textarea { + color: initial; +}