[wp-trac] [WordPress Trac] #45452: Bundled Themes: De-Gutenbergify comments and CSS selectors

WordPress Trac noreply at wordpress.org
Fri Nov 30 18:45:01 UTC 2018


#45452: Bundled Themes: De-Gutenbergify comments and CSS selectors
---------------------------+-------------------------------------
 Reporter:  laurelfulford  |      Owner:  laurelfulford
     Type:  defect (bug)   |     Status:  assigned
 Priority:  normal         |  Milestone:  5.0.1
Component:  Bundled Theme  |    Version:  5.0
 Severity:  normal         |   Keywords:  has-patch needs-testing
  Focuses:                 |
---------------------------+-------------------------------------
 In the existing default themes, the term "Gutenberg" should be replaced in
 the block stylesheets with something more future-friendly, like "block-
 based editor".

 In all of the themes, 'Gutenberg' is mentioned at the top of the
 blocks.css and editor-blocks.css files in a CSS comment, and above the
 block-based editor CSS enqueue in the functions.php in a PHP comment.

 Twenty Seventeen uses the class `.gutenberg-editor-page` in the editor-
 blocks.css, in the style:

 {{{
 /* Background color */

 .gutenberg-editor-page .editor-block-list__block {
         background-color: transparent;
 }
 }}}

 Looking at the editor, it looks like the issue this style was meant to fix
 is no longer present; when the style is removed, the `.editor-block-
 list__block` still doesn't have any background colour. So I think this one
 is safe to remove outright.

 Twenty Twelve uses the class `.gutenberg` in the editor-blocks.css for the
 widget block styles. These styles are still needed, but this class can be
 replaced with `.editor-block-list__block`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45452>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list