Skip to content

Commit 4b343a7

Browse files
committed
Administration: Fix misaligned icon in user profile password field on mobile.
In [62262], the show/hide button next to the password field was aligned using `line-height` and `vertical-align`. This approach left the icon misaligned on mobile viewports. Follow-up to [62262]. Props mukesh27, wildworks. Fixes #65031. git-svn-id: https://develop.svn.wordpress.org/trunk@62272 602fd350-edb4-49c9-b593-d223f7449a82
1 parent dce66cf commit 4b343a7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/wp-admin/css/forms.css

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

586-
.button.wp-hide-pw.user-new-password-toggle > .dashicons {
587-
line-height: 1.85;
588-
vertical-align: top;
586+
.button.wp-hide-pw.user-new-password-toggle {
587+
display: inline-flex;
588+
align-items: center;
589+
column-gap: 4px;
589590
}
590591

591592
.wp-cancel-pw .dashicons-no {

0 commit comments

Comments
 (0)