[wp-trac] [WordPress Trac] #64354: Outlined buttons now have grey background

WordPress Trac noreply at wordpress.org
Fri Dec 5 08:18:35 UTC 2025


#64354: Outlined buttons now have grey background
-------------------------------------------------+-------------------------
 Reporter:  pmbs                                 |       Owner:
                                                 |  westonruter
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.9.1
Component:  Script Loader                        |     Version:  6.9
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:  css
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by westonruter):

 There's one more thing I'm aware of that needs to investigated: the
 `enqueue_block_assets` action will, as mentioned above, call these
 functions:

 1. `wp_enqueue_classic_theme_styles()`
 2. `wp_enqueue_registered_block_scripts_and_styles()`
 3. `enqueue_block_styles_assets()`

 The first function is accounted for in this PR, as it actually already ran
 at `wp_enqueue_scripts`. The second function is also accounted for,
 because it short-circuits if `wp_should_load_block_assets_on_demand()`
 returns false (in which case the style hoisting doesn't happen at all
 anyway).

 However, the third function I believe needs to be accounted for. Namely,
 any styles for third-party blocks being used on the page would seem to
 need to be printed ''after'' the `classic-theme-styles` stylesheet,
 whereas the other core block styles get printed ''before''. This would
 ensure the cascade is remains the same.

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


More information about the wp-trac mailing list