Skip to content

Commit 4749d95

Browse files
committed
Administration: Fix misaligned icon in user profile password field.
This changeset corrects a misalignment issue affecting the show/hide button next to the password field. Reviewed by peterwilsoncc. Merges [62262] and [62272] to the 7.0 branch. Props piyushpatel123, rajdiptank111, ankitkumarshah, andrewssanya, jdahir0789, gautammkgarg, gaurangsondagar, gaisma22, ugyensupport, abduremon, ankitmaru, darshitrajyaguru97, khushdoms, monzuralam, mukesh27, wildworks. git-svn-id: https://develop.svn.wordpress.org/branches/7.0@62274 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6793ee1 commit 4749d95

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/wp-admin/css/forms.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,12 @@ input[type="number"].tiny-text {
583583
vertical-align: middle;
584584
}
585585

586+
.button.wp-hide-pw.user-new-password-toggle {
587+
display: inline-flex;
588+
align-items: center;
589+
column-gap: 4px;
590+
}
591+
586592
.wp-cancel-pw .dashicons-no {
587593
display: none;
588594
}

src/wp-admin/user-edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@
695695
<input type="password" name="pass1" id="pass1" class="regular-text ltr" value="" autocomplete="new-password" spellcheck="false" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" />
696696
<div style="display:none" id="pass-strength-result" aria-live="polite"></div>
697697
</div>
698-
<button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
698+
<button type="button" class="button wp-hide-pw user-new-password-toggle hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
699699
<span class="dashicons dashicons-hidden" aria-hidden="true"></span>
700700
<span class="text"><?php _e( 'Hide' ); ?></span>
701701
</button>

0 commit comments

Comments
 (0)