Skip to content

Commit

Permalink
Accessibility: Improve and modernize user interface controls: Make th…
Browse files Browse the repository at this point in the history
…e secondary buttons border blue.

Props drw158, youknowriad, kjellr, melchoyce, talldanwp, audrasjb.
See #34904.


git-svn-id: https://develop.svn.wordpress.org/trunk@46344 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
afercia committed Sep 29, 2019
1 parent 47643f7 commit ef206a7
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 22 deletions.
30 changes: 26 additions & 4 deletions src/wp-admin/css/colors/_admin.scss
Expand Up @@ -23,10 +23,11 @@ a {
}
}

#media-upload a.del-link:hover,
div.dashboard-widget-submit input:hover,
.subsubsub a:hover,
.subsubsub a.current:hover {
#post-body .misc-pub-post-status:before,
#post-body #visibility:before,
.curtime #timestamp:before,
#post-body .misc-pub-revisions:before,
span.wp-media-buttons-icon:before {
color: $link-focus;
}

Expand Down Expand Up @@ -73,6 +74,23 @@ textarea:focus {
/* Core UI */

.wp-core-ui {

.button,
.button-secondary {
color: $button-color;
border-color: $button-color;
}

.button.hover,
.button:hover,
.button-secondary:hover,
.button.focus,
.button:focus,
.button-secondary:focus {
border-color: darken( $button-color, 5% );
color: darken( $button-color, 5% );
}

.button.focus,
.button:focus,
.button-secondary:focus {
Expand All @@ -85,6 +103,10 @@ textarea:focus {
@include button( $button-color );
}

.button-group > .button.active {
border-color: $button-color;
}

.wp-ui-primary {
color: $text-color;
background-color: $base-color;
Expand Down
11 changes: 6 additions & 5 deletions src/wp-admin/css/common.css
Expand Up @@ -617,13 +617,14 @@ code {
position: relative;
top: -3px;
text-decoration: none;
border: 1px solid #7e8993;
border: 1px solid #0071a1;
border-radius: 2px;
text-shadow: none;
font-weight: 600;
font-size: 13px;
line-height: normal; /* IE8-IE11 need this for buttons */
color: #555; /* use the standard color used for buttons */
color: #0071a1; /* use the standard color used for buttons */
background: #f3f5f6;
cursor: pointer;
}

Expand All @@ -633,9 +634,9 @@ code {

.wrap .add-new-h2:hover, /* deprecated */
.wrap .page-title-action:hover {
background: #f3f5f6;
border-color: #7e8993;
color: #007cba;
background: #f1f1f1;
border-color: #016087;
color: #016087;
}

/* lower specificity: color needs to be overridden by :hover and :active */
Expand Down
3 changes: 1 addition & 2 deletions src/wp-admin/css/edit.css
Expand Up @@ -448,8 +448,7 @@ form#tags-filter {
#post-body .misc-pub-post-status:before,
#post-body #visibility:before,
.curtime #timestamp:before,
#post-body .misc-pub-revisions:before,
span.wp-media-buttons-icon:before {
#post-body .misc-pub-revisions:before {
color: #82878c;
}

Expand Down
1 change: 0 additions & 1 deletion src/wp-admin/css/media.css
Expand Up @@ -931,7 +931,6 @@ border color while dragging a file over the uploader drop area */
line-height: 2;
margin: 0 8px 8px 0;
padding: 0 10px;
color: #555;
}

.imgedit-menu .button:before {
Expand Down
21 changes: 11 additions & 10 deletions src/wp-includes/css/buttons.css
Expand Up @@ -123,9 +123,9 @@ TABLE OF CONTENTS:

.wp-core-ui .button,
.wp-core-ui .button-secondary {
color: #555;
border-color: #7e8993;
background: #f1f1f1;
color: #0071a1;
border-color: #0071a1;
background: #f3f5f6;
vertical-align: top;
}

Expand All @@ -139,9 +139,9 @@ TABLE OF CONTENTS:
.wp-core-ui .button.focus,
.wp-core-ui .button:focus,
.wp-core-ui .button-secondary:focus {
background: #f3f5f6;
border-color: #7e8993;
color: #007cba;
background: #f1f1f1;
border-color: #016087;
color: #016087;
}

.wp-core-ui .button.focus,
Expand All @@ -157,15 +157,15 @@ TABLE OF CONTENTS:
.wp-core-ui .button.active:hover,
.wp-core-ui .button:active,
.wp-core-ui .button-secondary:active {
background: #eee;
border-color: #999;
background: #f3f5f6;
border-color: #7e8993;
transform: translateY(1px);
box-shadow: none;
}

.wp-core-ui .button.active:focus {
border-color: #999;
box-shadow: 0 0 0 1px #999;
border-color: #7e8993;
box-shadow: 0 0 0 1px #7e8993;
}

.wp-core-ui .button[disabled],
Expand Down Expand Up @@ -319,6 +319,7 @@ TABLE OF CONTENTS:
.wp-core-ui .button-group > .button.active {
background-color: #e2e4e7;
box-shadow: inset 0 1px 0 0 #999;
border-color: #016087;
}

.wp-core-ui .button-group > .button:active,
Expand Down

0 comments on commit ef206a7

Please sign in to comment.