Ticket #48222: 48222.9.diff
File 48222.9.diff, 3.9 KB (added by , 3 years ago) |
---|
-
src/js/_enqueues/admin/user-profile.js
67 67 68 68 function resetToggle( show ) { 69 69 $toggleButton 70 .attr({71 'aria-label': show ? __( 'Show password' ) : __( 'Hide password' )72 })73 70 .find( '.text' ) 74 .text( show ? __( 'Show ' ) : __( 'Hide' ) )71 .text( show ? __( 'Show password' ) : __( 'Hide password' ) ) 75 72 .end() 76 73 .find( '.dashicons' ) 77 74 .removeClass( show ? 'dashicons-hidden' : 'dashicons-visibility' ) -
src/wp-admin/css/login.css
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: -12px 0 12px auto; 91 padding: 0 2px; 92 position: relative; 93 z-index: 10; 97 94 } 98 95 99 96 .login .button.wp-hide-pw:hover { … … 115 112 } 116 113 117 114 .login .button.wp-hide-pw .dashicons { 118 width: 1 .25rem;115 width: 1rem; 119 116 height: 1.25rem; 120 117 top: 0.25rem; 118 font-size: 16px; 121 119 } 122 120 123 121 .login .wp-pwd { … … 124 122 position: relative; 125 123 } 126 124 125 @media screen and (max-width: 782px) { 126 .login .button.wp-hide-pw { 127 right: auto; 128 width: auto; 129 } 130 131 .login .button.wp-hide-pw .text { 132 display: inline; 133 } 134 } 135 127 136 .no-js .hide-if-no-js { 128 137 display: none; 129 138 } … … 341 350 font-family: Consolas, Monaco, monospace; 342 351 } 343 352 344 .js.login input.password-input,345 .js.login-action-rp form .input,346 .js.login-action-rp input[type="text"] {347 padding-right: 2.5rem;348 }349 350 353 .login form .input, 351 354 .login input[type="text"], 352 355 .login form input[type="checkbox"] { -
src/wp-login.php
937 937 <div class="wp-pwd"> 938 938 <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="off" aria-describedby="pass-strength-result" /> 939 939 940 <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' ); ?>"> 940 <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div> 941 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0"> 941 942 <span class="dashicons dashicons-hidden" aria-hidden="true"></span> 943 <span class="text"><?php _e( 'Hide password' ); ?></span> 942 944 </button> 943 <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div>944 945 </div> 945 946 <div class="pw-weak"> 946 947 <input type="checkbox" name="pw_weak" id="pw-weak" class="pw-checkbox" /> … … 1386 1387 <label for="user_pass"><?php _e( 'Password' ); ?></label> 1387 1388 <div class="wp-pwd"> 1388 1389 <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" /> 1389 <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' ); ?>">1390 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0"> 1390 1391 <span class="dashicons dashicons-visibility" aria-hidden="true"></span> 1392 <span class="text"><?php _e( 'Show password' ); ?></span> 1391 1393 </button> 1392 1394 </div> 1393 1395 </div>