Make WordPress Core


Ignore:
Timestamp:
12/05/2019 09:30:58 PM (7 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.
Fixes #48585.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/colors/_admin.scss

    r46423 r46815  
    7676.wp-core-ui {
    7777
    78         .button,
    79         .button-secondary {
    80                 color: $button-color;
    81                 border-color: $button-color;
     78        .button {
     79                border-color: #7e8993;
     80                color: #32373c;
    8281        }
    8382
    8483        .button.hover,
    8584        .button:hover,
    86         .button-secondary:hover,
    8785        .button.focus,
    88         .button:focus,
    89         .button-secondary:focus {
    90                 border-color: darken( $button-color, 5% );
    91                 color: darken( $button-color, 5% );
     86        .button:focus {
     87                border-color: darken( #7e8993, 5% );
     88                color: darken( #32373c, 5% );
    9289        }
    9390
    9491        .button.focus,
    95         .button:focus,
    96         .button-secondary:focus {
    97                 border-color: $button-color;
    98                 color: darken( $button-color, 5% );
    99                 box-shadow: 0 0 0 1px $button-color;
     92        .button:focus {
     93                border-color: $highlight-color;
     94                box-shadow: 0 0 0 1px $highlight-color;
    10095        }
    10196
    10297        .button:active {
    103                 background: darken( $button-color, 5% );
    104                 border-color: darken( $button-color, 5% );
     98                border-color: #7e8993;
     99                color: darken( #32373c, 5% );
     100                box-shadow: none;
    105101        }
    106102
     
    109105        .button.active:hover {
    110106                border-color: darken( $button-color, 5% );
    111                 color: darken( $button-color, 5% );
    112                 box-shadow: inset 0 2px 5px -3px darken( $button-color, 5% );
     107                color: darken( $button-text-color, 5% );
    113108        }
    114109
Note: See TracChangeset for help on using the changeset viewer.