[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 10:10:34 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 (by devsahadat):

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


Comment:

 == Test Report
 I just Checked and found that replacing the global color with inherit in
 theme style.css (line 1855) worked fine.

 Before:


 {{{
 .wp-block-code code { color: var(--global--color-primary); }
 }}}

 After:
 {{{
 color:inherit
 }}}

 removing the global color css from **.wp-block-code code** also work well
 for me.

 === Environment
 - WordPress: 6.5.2
 - PHP: 8.1.23
 - Server: Apache/2.4.43 (Unix)
 - Database: mysqli (Server: 8.0.16 / Client: mysqlnd 8.1.23)
 - Browser: Chrome 123.0.0.0 (macOS)
 - Theme: Twenty Twenty-One 2.2
 - MU-Plugins: None activated
 - Plugins:
   * Gutenberg 18.2.0
   * WordPress Beta Tester 3.5.5
 === Expected Results
 1.  ✅ code block text color change  when set custom color

 === Actual Results
 1.  ✅ code block text color changed  when set custom color

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


More information about the wp-trac mailing list