Make WordPress Core


Ignore:
Timestamp:
03/04/2021 04:55:16 PM (4 years ago)
Author:
desrosj
Message:

Twenty Twenty-One: Make text readable when dark background is selected for the Media & Text block.

This change ensures that the text in the Media & Text block is readable when dark background colors are selected.

This is a regression that was introduced in [49987].

Props hellofromTonya, poena, paaljoachim, ryelle.
Fixes #52702.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/assets/sass/07-utilities/color-palette.scss

    r50466 r50493  
    210210    &.has-gray-background-color[class],
    211211    &.has-dark-gray-background-color[class] {
     212        color: var(--global--color-white);
     213
    212214        // Localize CSS-variables to limit relationship scope
    213215        > [class*="__inner-container"] {
     
    228230    &.has-yellow-background-color[class],
    229231    &.has-white-background-color[class] {
     232        color: var(--global--color-dark-gray);
     233
    230234        // Localize CSS-variables to limit relationship scope
    231235        > [class*="__inner-container"] {
Note: See TracChangeset for help on using the changeset viewer.