From e658596ff6141c8ff4f32cccd09bde1fb74be290 Mon Sep 17 00:00:00 2001 From: Ian Belanger Date: Tue, 21 Apr 2020 19:15:20 +0000 Subject: [PATCH] Bundled Themes: Twenty Twenty block editor inserter is missing the `+`. Fixes the disappearing `+` in the block editor when using the latest version of the Gutenberg plugin, by adding support for the native Gutenberg editor styles and removing `color: inherit;` from Twenty Twenty's style.css. Props nrqsnchz, . Fixes #49610. git-svn-id: https://develop.svn.wordpress.org/trunk@47607 602fd350-edb4-49c9-b593-d223f7449a82 --- .../twentytwenty/assets/css/editor-style-block-rtl.css | 6 ------ .../themes/twentytwenty/assets/css/editor-style-block.css | 6 ------ src/wp-content/themes/twentytwenty/functions.php | 2 ++ 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css index 4b3018a08d..aaeed4338a 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css @@ -30,12 +30,6 @@ font-size: inherit; } -.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover):not(:focus), -.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover):not(:focus) { - color: inherit; -} - - /* Fonts ------------------------------------- */ /* diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css index 55d1446f31..4e709dc59d 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css @@ -30,12 +30,6 @@ font-size: inherit; } -.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover):not(:focus), -.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover):not(:focus) { - color: inherit; -} - - /* Fonts ------------------------------------- */ /* diff --git a/src/wp-content/themes/twentytwenty/functions.php b/src/wp-content/themes/twentytwenty/functions.php index 5fe5f58e8a..47c950a44f 100644 --- a/src/wp-content/themes/twentytwenty/functions.php +++ b/src/wp-content/themes/twentytwenty/functions.php @@ -555,6 +555,8 @@ function twentytwenty_block_editor_settings() { ) ); + add_theme_support( 'editor-styles' ); + // If we have a dark background color then add support for dark editor style. // We can determine if the background color is dark by checking if the text-color is white. if ( '#ffffff' === strtolower( twentytwenty_get_color_for_area( 'content', 'text' ) ) ) {