WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/21/2014 09:26:31 PM (7 years ago)
Author:
iammattthomas
Message:

Eliminate the 1px padding adjustment on active buttons because it creates an un-clickable dead zone 1px high and spanning the entire width of the button. Modify the background color of active buttons for better contrast to make the active state more obvious.

See #26700, props johnbillion.

File:
1 edited

Legend:

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

    r26139 r26993  
    1212    &:hover,
    1313    &:focus {
    14         background: darken( $button-color, 8% );
     14        background: darken( $button-color, 5% );
    1515        border-color: darken( $button-color, 15% );
    1616        color: $text-color;
     
    2020
    2121    &:active {
    22         background: darken( $button-color, 8% );
     22        background: darken( $button-color, 10% );
    2323        border-color: darken( $button-color, 15% );
    2424        color: $text-color;
Note: See TracChangeset for help on using the changeset viewer.