Skip to content

Commit

Permalink
Accessibility: Improve and modernize user interface controls for bett…
Browse files Browse the repository at this point in the history
…er contrast: Login screen improvements.

- allows the login input fields to better scale with text 
- improves the input fields layout on Internet Explorer 11
- uses the new focus style on the "Show password" button 
- adjusts the CSS for the interim login

See #47153.
See #42888.


git-svn-id: https://develop.svn.wordpress.org/trunk@46371 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
afercia committed Oct 1, 2019
1 parent 02cf7f5 commit 5ddfa37
Showing 1 changed file with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions src/wp-admin/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,15 @@ p {
box-shadow: none;
font-size: 14px;
line-height: 2;
height: auto;
width: 2.5rem;
height: 2.5rem;
min-width: 40px;
min-height: 40px;
margin: 0;
padding: 5px 9px;
position: absolute;
right: 0;
top: 3px;
top: 0;
}

.login .button.wp-hide-pw:hover {
Expand All @@ -97,8 +100,10 @@ p {

.login .button.wp-hide-pw:focus {
background: transparent;
border-color: #5b9dd9;
box-shadow: 0 0 3px rgba(0, 115, 170, 0.8);
border-color: #007cba;
box-shadow: 0 0 0 1px #007cba;
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}

.login .button.wp-hide-pw:active {
Expand All @@ -108,7 +113,9 @@ p {
}

.login .button.wp-hide-pw .dashicons {
top: 4px;
width: 1.25rem;
height: 1.25rem;
top: 0.25rem;
}

.login .wp-pwd {
Expand Down Expand Up @@ -192,6 +199,9 @@ p {

.login label {
font-size: 14px;
line-height: 1.5;
display: inline-block;
margin-bottom: 3px;
}

.login .forgetmenot label,
Expand Down Expand Up @@ -273,16 +283,19 @@ p {
.login input[type="text"],
.login input[type="password"] {
font-size: 24px;
line-height: 1.16666666; /* 28px */
line-height: 1.33333333; /* 32px */
width: 100%;
padding: 5px;
margin: 3px 6px 16px 0;
border-width: 0.0625rem;
padding: 0.1875rem 0.3125rem; /* 3px 5px */
margin: 0 6px 16px 0;
min-height: 40px;
max-height: none;
}

.js.login input.password-input,
.js.login-action-rp form .input,
.js.login-action-rp input[type="text"] {
padding-right: 45px;
padding-right: 2.5rem;
}

.login form .input,
Expand Down Expand Up @@ -352,15 +365,16 @@ body.interim-login {
}
}


@media screen and (max-width: 782px) {
.interim-login input[type=checkbox] {
height: 16px;
width: 16px;
width: 1rem;
height: 1rem;
}

.interim-login input[type=checkbox]:checked:before {
width: 16px;
font: normal 21px/1 dashicons;
margin: -3px 0 0 -4px;
width: 1.3125rem;
height: 1.3125rem;
margin: -0.1875rem 0 0 -0.25rem;
}
}

0 comments on commit 5ddfa37

Please sign in to comment.