WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/05/2019 09:32:26 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Accessibility: Administration: Apply a unified design to all secondary buttons across all color schemes.

This ensures that secondary buttons have an appropriate color contrast in the alternative color schemes.

Props melchoyce, ryelle, audrasjb, ate-up-with-motor, afercia, sabernhardt.
Merges [46815] to the 5.3 branch.
Fixes #48585.

Location:
branches/5.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.3

  • branches/5.3/src/wp-admin/css/colors/_mixins.scss

    r46575 r46816  
    66    background: $button-color;
    77    border-color: $button-color;
    8     color: $text-color;
     8    color: $button-text-color;
    99
    1010    &:hover,
     
    1212        background: lighten( $button-color, 3% );
    1313        border-color: darken( $button-color, 3% );
    14         color: $text-color;
     14        color: $button-text-color;
    1515    }
    1616
     
    2424        background: darken( $button-color, 5% );
    2525        border-color: darken( $button-color, 5% );
    26         color: $text-color;
     26        color: $button-text-color;
    2727    }
    2828
     
    3131    &.active:hover {
    3232        background: $button-color;
    33         color: $text-color;
     33        color: $button-text-color;
    3434        border-color: darken( $button-color, 15% );
    3535        box-shadow: inset 0 2px 5px -3px darken( $button-color, 50% );
Note: See TracChangeset for help on using the changeset viewer.