[wp-trac] [WordPress Trac] #61077: Twenty Twenty-One: Code block text color is not change in front-end when we changed its color using block setting.

WordPress Trac noreply at wordpress.org
Thu Apr 25 18:39:03 UTC 2024


#61077: Twenty Twenty-One: Code block text color is not change in front-end when we
changed its color using block setting.
-------------------------------------------------+-------------------------
 Reporter:  viralsampat                          |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Bundled Theme                        |     Version:  6.5
 Severity:  normal                               |  Resolution:
 Keywords:  dev-feedback has-patch has-testing-  |     Focuses:  ui, css
  info changes-requested                         |
-------------------------------------------------+-------------------------
Changes (by sabernhardt):

 * keywords:  dev-feedback has-patch has-testing-info => dev-feedback has-
     patch has-testing-info changes-requested


Comment:

 [49825] purposely added a color within the Code block to override
 Gutenberg's `theme.css` in dark mode. However, that only affected the
 front end and [https://github.com/WordPress/gutenberg/pull/37816/files PR
 37816] removed the troublesome block style for WordPress 6.0.

 Removing the color from Twenty Twenty-One now could break the front end in
 rare cases, but that should only happen if the site
 - uses Twenty Twenty-One
 - updates to the next theme version or later
 - keeps an older WordPress version (before 6.0)
 - enables the theme's dark mode (and visitors indicate a preference for
 it)
 - includes at least one Code block

 The patch still needs a change in the SCSS:
 `assets/sass/05-blocks/code/_style.scss`

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


More information about the wp-trac mailing list