WordPress.org

Make WordPress Core

Opened 2 months ago

Last modified 7 weeks ago

#48726 new defect (bug)

Twenty Twenty: Wrong Text Color for Background Color & Subtle Background when used as background color for blocks

Reported by: collet Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.3
Component: Bundled Theme Keywords: needs-testing
Focuses: css Cc:
PR Number:

Description

To reproduce the issue:

  • In the customizer inside the Colors panel set the Background Color to #000, it will generate a white text color
  • In the editor, insert a block that supports background color (e.g. Paragraph) and select Background Color or Subtle Background as the background color using the color palette.

The text color is black instead of white, which makes the text unreadable.

The issue (front-end and editor) is caused by the CSS (which set the text to black) at the following lines:

https://github.com/WordPress/WordPress/blob/master/wp-content/themes/twentytwenty/style.css#L2730
https://github.com/WordPress/WordPress/blob/master/wp-content/themes/twentytwenty/style.css#L2739
https://github.com/WordPress/WordPress/blob/master/wp-content/themes/twentytwenty/assets/css/editor-style-block.css#L198
https://github.com/WordPress/WordPress/blob/master/wp-content/themes/twentytwenty/assets/css/editor-style-block.css#L207

Change History (1)

#1 @ianbelanger
7 weeks ago

  • Keywords needs-testing added
Note: See TracTickets for help on using tickets.