Make WordPress Core


Ignore:
Timestamp:
12/22/2020 03:00:49 PM (3 years ago)
Author:
desrosj
Message:

Twenty Twenty-One: Improve striped table styling in Dark Mode.

This change improves the display of table blocks with the “Stripes” style selected.

Previously, the text was not visible in striped rows when using Dark Mode.

Props ryelle, poena, melchoyce, celendesign, audrasjb.
Fixes #52129.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-custom-colors.php

    r49826 r49864  
    7575
    7676            if ( '#fff' === $this->custom_get_readable_color( $background_color ) ) {
    77                 $theme_css .= '--table--stripes-border-color: var(--global--color-dark-gray);';
    78                 $theme_css .= '--table--stripes-background-color: var(--global--color-dark-gray);';
     77                $theme_css .= '--table--stripes-border-color: rgba(240, 240, 240, 0.15);';
     78                $theme_css .= '--table--stripes-background-color: rgba(240, 240, 240, 0.15);';
    7979            }
    8080        }
Note: See TracChangeset for help on using the changeset viewer.