[wp-trac] [WordPress Trac] #48569: Twenty Twenty: Theme-specific editor styles being improperly enqueued

WordPress Trac noreply at wordpress.org
Tue Nov 19 14:15:47 UTC 2019


#48569: Twenty Twenty: Theme-specific editor styles being improperly enqueued
---------------------------+-----------------------------
 Reporter:  markjaquith    |       Owner:  (none)
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Bundled Theme  |     Version:  5.3
 Severity:  normal         |  Resolution:  wontfix
 Keywords:                 |     Focuses:  administration
---------------------------+-----------------------------

Comment (by joyously):

 > If `add_editor_style()` is not able to accomplish its job of crafting
 front-page-matching editor styles for the block editor, then this is a
 much more serious problem than Twenty Twenty using the wrong API.

 There are issues already in GitHub for the problem, which is that the
 stylesheet is processed and the editor class name is prepended to each
 selector. This doesn't work for styles that are for elements that are
 ancestors of the editor input area, like `body` or `html` or `:root`. It
 changes the specificity of the styles, making it more difficult to write
 the correct CSS to match the front.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48569#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list