Opened 16 months ago
Last modified 15 months ago
#48726 new defect (bug)
Twenty Twenty: Wrong Text Color for Background Color & Subtle Background when used as background color for blocks
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.3 |
Component: | Bundled Theme | Keywords: | needs-testing |
Focuses: | css | Cc: |
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
Note: See
TracTickets for help on using
tickets.