Ticket #48222: 48222.8.diff
File 48222.8.diff, 3.7 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 } … … 340 349 font-family: Consolas, Monaco, monospace; 341 350 } 342 351 343 .js.login input.password-input,344 .js.login-action-rp form .input,345 .js.login-action-rp input[type="text"] {346 padding-right: 2.5rem;347 }348 349 352 .login form .input, 350 353 .login input[type="text"], 351 354 .login form input[type="checkbox"] { -
src/wp-login.php
880 880 <div class="wp-pwd"> 881 881 <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" /> 882 882 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' ); ?>">883 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0"> 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> … … 1323 1324 <label for="user_pass"><?php _e( 'Password' ); ?></label> 1324 1325 <div class="wp-pwd"> 1325 1326 <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" /> 1326 <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 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0"> 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>