[wp-trac] [WordPress Trac] #56205: Twenty Twenty: background color of column can affect the inner content color (was: Twenty Twenty: background color of column can affect the inner connect color)

WordPress Trac noreply at wordpress.org
Wed Jul 13 21:19:51 UTC 2022


#56205: Twenty Twenty: background color of column can affect the inner content
color
-------------------------------------------+------------------------------
 Reporter:  nidhidhandhukiya               |       Owner:  (none)
     Type:  enhancement                    |      Status:  new
 Priority:  low                            |   Milestone:  Awaiting Review
Component:  Bundled Theme                  |     Version:  6.0
 Severity:  normal                         |  Resolution:
 Keywords:  close 2nd-opinion needs-patch  |     Focuses:  css
-------------------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => close 2nd-opinion needs-patch
 * priority:  normal => low
 * focuses:   => css
 * type:  defect (bug) => enhancement


Comment:

 Thanks for the report!

 I do not consider this a bug. The default does not work in all situations,
 but users can correct it themselves. If I add a block with a custom light
 background inside another block with a darker background, then I need to
 specify a Text color for the inner block.

 If we change the default, that could override user-defined text colors,
 and it could apply a dark text color when the inner block has a custom
 dark background. A selector like `:root .has-accent-background-color
 :where(.has-background:not(.has-text-color))` might prevent creating those
 problems on existing sites. The new default for inner blocks would involve
 updating stylesheets for front-end and editor, plus the PHP for custom
 accent colors.

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


More information about the wp-trac mailing list