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
This commit is contained in:
parent
5763451b44
commit
e658596ff6
@ -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 ------------------------------------- */
|
||||
|
||||
/*
|
||||
|
@ -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 ------------------------------------- */
|
||||
|
||||
/*
|
||||
|
@ -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' ) ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user