WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/07/2019 06:45:45 PM (6 weeks ago)
Author:
afercia
Message:

Accessibility: Improve and modernize user interface controls: Improve the buttons active CSS class.

  • improves the buttons .active CSS class for buttons that need to be styled as "pressed"
  • update the alternate color schemes .active CSS class accordingly
  • improves a few icons colors in the alternate color schemes

See #34904.

File:
1 edited

Legend:

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

    r46241 r46423  
    2121    }
    2222
    23     &:active,
     23    &:active {
     24        background: darken( $button-color, 5% );
     25        border-color: darken( $button-color, 5% );
     26        color: $text-color;
     27    }
     28
    2429    &.active,
    2530    &.active:focus,
    2631    &.active:hover {
    27         background: darken( $button-color, 5% );
    28         border-color: darken( $button-color, 5% );
     32        background: $button-color;
     33        color: $text-color;
     34        border-color: darken( $button-color, 15% );
     35        box-shadow: inset 0 2px 5px -3px darken( $button-color, 50% );
    2936    }
    3037
Note: See TracChangeset for help on using the changeset viewer.