[wp-trac] [WordPress Trac] #58608: Twenty Twenty-One: Text color is not reflected when having background color

WordPress Trac noreply at wordpress.org
Tue May 6 09:17:28 UTC 2025


#58608: Twenty Twenty-One: Text color is not reflected when having background color
-------------------------------------------------+-------------------------
 Reporter:  wildworks                            |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Bundled Theme                        |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-screenshots has-       |     Focuses:  ui, css
  testing-info changes-requested                 |
-------------------------------------------------+-------------------------

Comment (by sainathpoojary):

 Thanks for the feedback, @poena.

 I’ve submitted a PR that conditionally applies `color: inherit` when the
 `.has-text-color` class is present on table blocks. This approach ensures
 that user-defined text colors are respected without altering the default
 styles or affecting dark mode configurations.

 The existing `--table--has-background-text-color` variable remains
 unchanged to maintain backward compatibility with child themes.

 Please let me know if further adjustments are needed.

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


More information about the wp-trac mailing list