Make WordPress Core

Changeset 47607


Ignore:
Timestamp:
04/21/2020 07:15:20 PM (5 years ago)
Author:
ianbelanger
Message:

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.

Location:
trunk/src/wp-content/themes/twentytwenty
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

    r47534 r47607  
    3030    font-size: inherit;
    3131}
    32 
    33 .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover):not(:focus),
    34 .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover):not(:focus) {
    35     color: inherit;
    36 }
    37 
    3832
    3933/* Fonts ------------------------------------- */
  • trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

    r47534 r47607  
    3030    font-size: inherit;
    3131}
    32 
    33 .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover):not(:focus),
    34 .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover):not(:focus) {
    35     color: inherit;
    36 }
    37 
    3832
    3933/* Fonts ------------------------------------- */
  • trunk/src/wp-content/themes/twentytwenty/functions.php

    r47139 r47607  
    556556    );
    557557
     558    add_theme_support( 'editor-styles' );
     559
    558560    // If we have a dark background color then add support for dark editor style.
    559561    // We can determine if the background color is dark by checking if the text-color is white.
Note: See TracChangeset for help on using the changeset viewer.