Make WordPress Core


Ignore:
Timestamp:
12/22/2020 04:15:41 PM (4 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.
Merges [49864] to the 5.6 branch.
Fixes #52129.

Location:
branches/5.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.6

  • branches/5.6/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-custom-colors.php

    r49829 r49867  
    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.