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. git-svn-id: https://develop.svn.wordpress.org/trunk@46815 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eb4b070009
commit
94b37d4f90
@ -75,41 +75,36 @@ textarea:focus {
|
|||||||
|
|
||||||
.wp-core-ui {
|
.wp-core-ui {
|
||||||
|
|
||||||
.button,
|
.button {
|
||||||
.button-secondary {
|
border-color: #7e8993;
|
||||||
color: $button-color;
|
color: #32373c;
|
||||||
border-color: $button-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.button.hover,
|
.button.hover,
|
||||||
.button:hover,
|
.button:hover,
|
||||||
.button-secondary:hover,
|
|
||||||
.button.focus,
|
.button.focus,
|
||||||
.button:focus,
|
.button:focus {
|
||||||
.button-secondary:focus {
|
border-color: darken( #7e8993, 5% );
|
||||||
border-color: darken( $button-color, 5% );
|
color: darken( #32373c, 5% );
|
||||||
color: darken( $button-color, 5% );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.button.focus,
|
.button.focus,
|
||||||
.button:focus,
|
.button:focus {
|
||||||
.button-secondary:focus {
|
border-color: $highlight-color;
|
||||||
border-color: $button-color;
|
box-shadow: 0 0 0 1px $highlight-color;
|
||||||
color: darken( $button-color, 5% );
|
|
||||||
box-shadow: 0 0 0 1px $button-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.button:active {
|
.button:active {
|
||||||
background: darken( $button-color, 5% );
|
border-color: #7e8993;
|
||||||
border-color: darken( $button-color, 5% );
|
color: darken( #32373c, 5% );
|
||||||
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button.active,
|
.button.active,
|
||||||
.button.active:focus,
|
.button.active:focus,
|
||||||
.button.active:hover {
|
.button.active:hover {
|
||||||
border-color: darken( $button-color, 5% );
|
border-color: darken( $button-color, 5% );
|
||||||
color: darken( $button-color, 5% );
|
color: darken( $button-text-color, 5% );
|
||||||
box-shadow: inset 0 2px 5px -3px darken( $button-color, 5% );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-primary {
|
.button-primary {
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
@mixin button( $button-color, $text-color: #fff ) {
|
@mixin button( $button-color, $text-color: #fff ) {
|
||||||
background: $button-color;
|
background: $button-color;
|
||||||
border-color: $button-color;
|
border-color: $button-color;
|
||||||
color: $text-color;
|
color: $button-text-color;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
background: lighten( $button-color, 3% );
|
background: lighten( $button-color, 3% );
|
||||||
border-color: darken( $button-color, 3% );
|
border-color: darken( $button-color, 3% );
|
||||||
color: $text-color;
|
color: $button-text-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
@ -23,14 +23,14 @@
|
|||||||
&:active {
|
&:active {
|
||||||
background: darken( $button-color, 5% );
|
background: darken( $button-color, 5% );
|
||||||
border-color: darken( $button-color, 5% );
|
border-color: darken( $button-color, 5% );
|
||||||
color: $text-color;
|
color: $button-text-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active,
|
&.active,
|
||||||
&.active:focus,
|
&.active:focus,
|
||||||
&.active:hover {
|
&.active:hover {
|
||||||
background: $button-color;
|
background: $button-color;
|
||||||
color: $text-color;
|
color: $button-text-color;
|
||||||
border-color: darken( $button-color, 15% );
|
border-color: darken( $button-color, 15% );
|
||||||
box-shadow: inset 0 2px 5px -3px darken( $button-color, 50% );
|
box-shadow: inset 0 2px 5px -3px darken( $button-color, 50% );
|
||||||
}
|
}
|
||||||
|
@ -18,8 +18,9 @@ $link: #0073aa !default;
|
|||||||
$link-focus: lighten( $link, 10% ) !default;
|
$link-focus: lighten( $link, 10% ) !default;
|
||||||
|
|
||||||
$button-color: $highlight-color !default;
|
$button-color: $highlight-color !default;
|
||||||
$form-checked: $highlight-color !default;
|
$button-text-color: $text-color !default;
|
||||||
|
|
||||||
|
$form-checked: #7e8993 !default;
|
||||||
|
|
||||||
// admin menu & admin-bar
|
// admin menu & admin-bar
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user