Make WordPress Core

Opened 5 years ago

Last modified 4 days ago

#48726 new enhancement

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

Reported by: collet's profile collet Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 5.3
Component: Bundled Theme Keywords: dev-feedback
Focuses: css Cc:

Description (last modified by sabernhardt)

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:

Change History (5)

#1 @ianbelanger
5 years ago

  • Keywords needs-testing added

#2 @sabernhardt
3 years ago

  • Description modified (diff)

#3 @poena
5 months ago

  • Type changed from defect (bug) to enhancement

I can confirm that the automatic text color change is not implemented for the secondary, subtle background, and background colors.

It may look like it works for the secondary color, but that is because its default text color is white.

Attempts were made to solve this during development, but was deemed too complex:

I am changing the type of this ticket from bug to enhancement since support for these colors was never implemented.

#4 @poena
5 months ago

  • Keywords needs-testing removed
  • Milestone changed from Awaiting Review to Future Release

#5 @karmatosed
4 days ago

  • Keywords dev-feedback added
Note: See TracTickets for help on using tickets.