[wp-trac] [WordPress Trac] #52702: Twenty Twenty-One: With WP5.7 RC2, the text color for the dark background color palette is dark instead of white.

WordPress Trac noreply at wordpress.org
Wed Mar 3 11:20:35 UTC 2021


#52702: Twenty Twenty-One: With WP5.7 RC2, the text color for the dark background
color palette is dark instead of white.
---------------------------+-----------------------------
 Reporter:  bduclos        |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:  css            |
---------------------------+-----------------------------
 In WP 5.6, when the user chooses “Black",  "Dark Gray'' or  "Gray" as the
 background-color for the Media & Text,  Cover, Paragraph and Heading
 blocks, the text is by default white. With 5.7 RC2, the text is now dark.

 Steps to reproduce the issue with WP 5.7 RC2:
 - Insert a Media & Text block.
 - Set its background color as Black using the first color palette item.
 - Insert a paragraph inside the block.
 - Observe that by default, the text is dark. In WP 5.6 the text was white.

 The following code in 5.6 has disappeared from 5.7:
 {{{
 :not(.has-text-color).has-black-background-color[class],
 :not(.has-text-color).has-gray-background-color[class],
 :not(.has-text-color).has-dark-gray-background-color[class] {
         color: var(--global--color-white);
 }

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52702>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list