[wp-trac] [WordPress Trac] #59822: Twenty Twenty-Four: Updating Text colour in group blocks isn't working for Heading block with WP 6.4 and TT4 theme

WordPress Trac noreply at wordpress.org
Tue Nov 7 03:30:53 UTC 2023


#59822: Twenty Twenty-Four: Updating Text colour in group blocks isn't working for
Heading block with WP 6.4 and TT4 theme
------------------------------------------+---------------------
 Reporter:  rajinsharwar                  |       Owner:  (none)
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  6.4.1
Component:  Bundled Theme                 |     Version:  trunk
 Severity:  normal                        |  Resolution:
 Keywords:  has-testing-info needs-patch  |     Focuses:
------------------------------------------+---------------------
Changes (by hellofromTonya):

 * milestone:  Awaiting Review => 6.4.1


Comment:

 Hello @rajinsharwar,

 Thank you for reporting this issue.

 I can reproduce the issue. It does happen with the TT4 theme. TT2 and TT3
 on WP 6.4 RC4 both work as expected.

 TT4 Scenario:
 * A Group has blocks with a heading (h1-h6).
 * The text color of the Group itself is changed.

 When this scenario happens, all h1-h6 within the Group do not render the
 text color change.

 In looking at the styles within the browser's DevTools, these h1-h6
 headings have a text color assigned to them. These are assigned in the
 theme's `theme.json` file in the `"styles` > `"elements"` > `"heading"`
 section:

 {{{
 "heading": {
         "color": {
                 "text": "var(--wp--preset--color--contrast)"
         },
         "typography": {
                 "fontFamily": "var(--wp--preset--font-family--heading)",
                 "fontWeight": "400",
                 "lineHeight": "1.2"
         }
 },
 }}}

 It appears to be specificity.

 I wonder:
 How common is this scenario?

 If a highly frequent scenario, then it may influence when the fix needs to
 happen.

 Right now, I'm thinking this fix could occur in 6.4.1, rather than
 blocking 6.4.0 release.

 Pinging the TT4 leads for their insights @luminuu @onemaggie.

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


More information about the wp-trac mailing list