diff --git src/js/_enqueues/admin/user-profile.js src/js/_enqueues/admin/user-profile.js
index 3b5e26f977..fa584ecb2d 100644
|
|
|
71 | 71 | 'aria-label': show ? __( 'Show password' ) : __( 'Hide password' ) |
72 | 72 | }) |
73 | 73 | .find( '.text' ) |
74 | | .text( show ? __( 'Show' ) : __( 'Hide' ) ) |
| 74 | .text( show ? __( 'Show password' ) : __( 'Hide password' ) ) |
75 | 75 | .end() |
76 | 76 | .find( '.dashicons' ) |
77 | 77 | .removeClass( show ? 'dashicons-hidden' : 'dashicons-visibility' ) |
diff --git src/wp-admin/css/login.css src/wp-admin/css/login.css
index 2212624e95..354c854685 100644
|
|
p { |
80 | 80 | } |
81 | 81 | |
82 | 82 | .login .button.wp-hide-pw { |
| 83 | display: block; |
83 | 84 | background: transparent; |
84 | 85 | border: 1px solid transparent; |
85 | 86 | box-shadow: none; |
86 | | font-size: 14px; |
87 | 87 | line-height: 2; |
88 | | width: 2.5rem; |
89 | | height: 2.5rem; |
90 | | min-width: 40px; |
91 | | min-height: 40px; |
92 | | margin: 0; |
93 | | padding: 5px 9px; |
94 | | position: absolute; |
95 | | right: 0; |
96 | | top: 0; |
| 88 | font-size: 12px; |
| 89 | height: 1.25rem; |
| 90 | margin: -15px 0 0 auto; |
| 91 | padding: 0; |
| 92 | position: relative; |
| 93 | z-index: 10; |
97 | 94 | } |
98 | 95 | |
99 | 96 | .login .button.wp-hide-pw:hover { |
100 | 97 | background: transparent; |
101 | 98 | } |
102 | 99 | |
103 | | .login .button.wp-hide-pw:focus { |
104 | | background: transparent; |
105 | | border-color: #3582c4; |
106 | | box-shadow: 0 0 0 1px #3582c4; |
107 | | /* Only visible in Windows High Contrast mode */ |
108 | | outline: 2px solid transparent; |
109 | | } |
110 | | |
111 | 100 | .login .button.wp-hide-pw:active { |
112 | 101 | background: transparent; |
113 | 102 | box-shadow: none; |
… |
… |
p { |
115 | 104 | } |
116 | 105 | |
117 | 106 | .login .button.wp-hide-pw .dashicons { |
118 | | width: 1.25rem; |
| 107 | width: 1rem; |
119 | 108 | height: 1.25rem; |
120 | 109 | top: 0.25rem; |
| 110 | font-size: 16px; |
121 | 111 | } |
122 | 112 | |
123 | 113 | .login .wp-pwd { |
124 | 114 | position: relative; |
125 | 115 | } |
126 | 116 | |
| 117 | @media screen and (max-width: 782px) { |
| 118 | .login .button.wp-hide-pw { |
| 119 | right: auto; |
| 120 | width: auto; |
| 121 | } |
| 122 | |
| 123 | .login .button.wp-hide-pw .text { |
| 124 | display: inline; |
| 125 | } |
| 126 | } |
| 127 | |
127 | 128 | .no-js .hide-if-no-js { |
128 | 129 | display: none; |
129 | 130 | } |
diff --git src/wp-login.php src/wp-login.php
index 11517dac21..f10bae696e 100644
|
|
switch ( $action ) { |
882 | 882 | |
883 | 883 | <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> |
884 | 884 | <span class="dashicons dashicons-hidden" aria-hidden="true"></span> |
| 885 | <span class="text"><?php _e( 'Hide password' ); ?></span> |
885 | 886 | </button> |
886 | 887 | <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div> |
887 | 888 | </div> |
… |
… |
switch ( $action ) { |
1325 | 1326 | <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" /> |
1326 | 1327 | <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Show password' ); ?>"> |
1327 | 1328 | <span class="dashicons dashicons-visibility" aria-hidden="true"></span> |
| 1329 | <span class="text"><?php _e( 'Show password' ); ?></span> |
1328 | 1330 | </button> |
1329 | 1331 | </div> |
1330 | 1332 | </div> |