[wp-trac] [WordPress Trac] #56970: .is-layout-flex broken

WordPress Trac noreply at wordpress.org
Thu Nov 10 01:18:54 UTC 2022


#56970: .is-layout-flex broken
-------------------------------------------------+-------------------------
 Reporter:  rsmith4321                           |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.1.1
Component:  Editor                               |     Version:  6.1
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing-info has-screenshots   |     Focuses:
  reporter-feedback needs-patch                  |
-------------------------------------------------+-------------------------

Comment (by chairmanbrando):

 As far as I can tell, the lack of `style#global-styles-inline-css` occurs
 when a theme does this:


 {{{
 remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' );
 }}}

 Why would a theme do this? Well, if they're not using `theme.json`, this
 block of styles previously only included fluff like unused default color,
 gradient, and font size declarations. Might as well drop them if all
 that's handled otherwise, right?

 As of WPv6.1, now there are layout styles in there like these `.is-
 layout-*` classes. Is there a reason these new layout styles aren't in the
 compiled block library CSS file, added as inline per-block styles, or in
 `style#core-block-supports-inline-css`?

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


More information about the wp-trac mailing list