Make WordPress Core

Opened 2 weeks ago

Last modified 6 hours ago

#65031 accepted defect (bug)

User Edit Screen Displays Misaligned Password Dashicon in WordPress 7.0-RC2

Reported by: piyushpatel123's profile piyushpatel123 Owned by: audrasjb's profile audrasjb
Milestone: 7.0 Priority: normal
Severity: normal Version: trunk
Component: Administration Keywords: has-patch admin-reskin
Focuses: ui, css, administration Cc:

Description

An alignment issue has been identified with the password dashicon on the user edit screen in WordPress 7.0-RC2.

Attachments (4)

Screenshot_4.png (18.2 KB) - added by piyushpatel123 2 weeks ago.
65031.patch (702 bytes) - added by rajdiptank111 2 weeks ago.
Upload patch
04-08-2026_05_03_PM.png (132.6 KB) - added by jdahir0789 13 days ago.
04-08-2026_05_04_PM.png (137.0 KB) - added by jdahir0789 13 days ago.

Download all attachments as: .zip

Change History (25)

#1 @piyushpatel123
2 weeks ago

I was able to identify the issue and found a solution. Removing or adjusting the following two CSS lines resolves the problem.

.wp-core-ui .button.wp-hide-pw > .dashicons{
line-height: 1;
vertical-align: middle;
}

@rajdiptank111
2 weeks ago

Upload patch

#2 @audrasjb
2 weeks ago

  • Keywords needs-testing has-patch admin-reskin added
  • Milestone changed from Awaiting Review to 7.0
  • Owner set to audrasjb
  • Status changed from new to accepted

This ticket was mentioned in PR #11463 on WordPress/wordpress-develop by @ankitkumarshah.


2 weeks ago
#3

Trac ticket: https://core.trac.wordpress.org/ticket/65031

## Before:
https://github.com/user-attachments/assets/bf64d192-2c23-4f27-a2b4-b150de8f29f4

## After:
https://github.com/user-attachments/assets/a4e45e6f-e6d7-4545-a8be-68315130e8d9

#4 @ankitkumarshah
2 weeks ago

Hi @rajdiptank111,

I tried applying your patch, but unfortunately ran into an error while doing so (screenshot attached):
https://i.postimg.cc/4dFk3k0N/Screenshot-2026-04-07-at-6-59-10-PM.png

I also attempted to apply the changes manually, but noticed a regression—specifically, the patch seems to introduce a layout issue on /wp-admin/options-writing.php (screenshot attached for reference):

https://i.postimg.cc/8zH1V3Ny/Screenshot-2026-04-07-at-6-39-04-PM.png

To address this, I’ve created a PR with a fix:
https://github.com/WordPress/wordpress-develop/pull/11463

Could you please test it when you get a chance and let me know if this works for you?

Thank you!

cc: @audrasjb

This ticket was mentioned in Slack in #core-test by r1k0. View the logs.


2 weeks ago

andrewssanya commented on PR #11463:


2 weeks ago
#6

Before:
https://github.com/user-attachments/assets/d989e4b9-b636-403d-bab5-5f40e4e809cc

After:
https://github.com/user-attachments/assets/30fc5d0b-eda3-4a3b-a097-f66deefc2ac0

andrewssanya commented on PR #11463:


2 weeks ago
#7

Before:
https://github.com/user-attachments/assets/d989e4b9-b636-403d-bab5-5f40e4e809cc

After:
https://github.com/user-attachments/assets/30fc5d0b-eda3-4a3b-a097-f66deefc2ac0

@andrewssanya commented on PR #11463:


2 weeks ago
#8

Patch Tested: https://core.trac.wordpress.org/ticket/65031

Environment

  • WordPress: 7.0-RC2
  • PHP: 8.0.30
  • Server: PHP.wasm
  • Database: WP_SQLite_Driver (Server: 8.0.38 /
  • Browser: Chrome 146.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.4
  • MU Plugins: None activated
    • Test Reports 1.2.1

Steps taken

  1. Clicked users
  2. Choose a partial user
  3. Edit user profile
  4. Set a new password

Screenshots/Screencast with results

Before:
https://github.com/user-attachments/assets/968d56f7-569c-4cdb-9e5f-cdbe5bf8a180

After:
https://github.com/user-attachments/assets/8097a2cc-e0fc-4633-a8b6-180045591c07

#9 @jdahir0789
13 days ago

I have tested in playground issue is not resolve.

This ticket was mentioned in Slack in #core-test by gautammkgarg. View the logs.


13 days ago

#11 @gautammkgarg
13 days ago

Tested patch: https://github.com/WordPress/wordpress-develop/pull/11463

Environment

WordPress: 7.1-alpha-20260407.134046
PHP: 7.4.33
Server: Playground
Database: WP_SQLite_Driver 8.0.38
Browser: Firefox 148
OS: Android
Theme: Twenty Twenty-Five 1.4

I think alignment is better after patch is applied but I think it is still not exactly center aligned.
https://prnt.sc/aIGLnK85BqUU

#12 @gaurangsondagar
13 days ago

https://core.trac.wordpress.org/ticket/65031

Tested the latest patch and it appears to be working as expected in Chrome and Firefox browsers.

Steps:

  • Applied the patch
  • Navigated to the user edit screen
  • Checked password field alignment

Result:
The dashicon alignment looks correct and consistent. I did not notice any visual issues in my testing.

Environment:

  • WordPress: 7.0-RC2, 7.1-alpha-62161-src
  • PHP: 8.3.30
  • Browser: Chrome, Firefox
  • Database: MySQL 8.4.8
  • OS: Ubuntu

The patch appears to work as expected. Screenshots for reference:

Chrome:

Firefox:

Last edited 12 days ago by gaurangsondagar (previous) (diff)

#13 @gaisma22
12 days ago

  • Keywords needs-testing removed

Patch Testing Report

Patch Tested: https://github.com/WordPress/wordpress-develop/pull/11463

Environment

  • WordPress: 7.0-beta6-62085-src
  • PHP: 8.3.30
  • Server: nginx/1.29.7
  • Database: MySQL 8.4.8
  • Browser: Brave
  • OS: Ubuntu 24.04
  • Theme: Twenty Twenty-Five 1.4
  • MU Plugins: None
  • Plugins: None

Steps Taken

  1. Went to Users > Edit User and clicked Set New Password. Before patch: Eye icon sits lower than the Hide text.
  2. Applied PR #11463 and hard refreshed. After patch: Eye icon aligned with Hide text.

✅ Patch is solving the problem

Expected Result

The password toggle button eye icon should sit at the same vertical level as the Hide text on the user edit screen.

Additional Notes

  1. Bug confirmed on WordPress 7.0-beta6. The dashicon eye icon on the password toggle button on user-edit.php sits lower than the Hide text before the patch.
  2. After the patch the alignment is correct.
  3. Removing needs-testing as patch resolves the issue on WordPress 7.0-beta6-62085-src.

Screenshots/Screencast with results

Before Patch:
https://i.ibb.co/Y4Zv164X/before-user-edit.png

After Patch:
https://i.ibb.co/zCcyqNB/after-user-edit.png

#14 @ugyensupport
12 days ago

  • Keywords needs-testing added

User Edit Screen Displays Misaligned Password Dashicon in WordPress 7.0-RC2

Description

An alignment issue has been identified with the password dashicon on the user edit screen in WordPress 7.0-RC2.

Patch tested: REPLACE_WITH_PATCH_URL

Environment

  • WordPress: 7.0-RC2
  • PHP: 8.2.28
  • Server: nginx/1.21.4
  • Database: mysqli (Server: 5.7.44-log / Client: mysqlnd 8.2.28)
  • Browser: Chrome 146.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.4
  • MU Plugins: None activated
  • Plugins:
    • Gutenberg 22.9.0
    • Test Reports 1.2.1
    • WordPress Beta Tester 4.0.0
    • wpDataTables 7.3.4
    • WP File Manager 8.0.3

Actual Results

  1. ✅ Issue resolved with patch https://github.com/WordPress/wordpress-develop/pull/11463/changes

Supplemental Artifacts

Before: https://i.postimg.cc/s2kr05DG/Before.jpg
After: https://i.postimg.cc/nrXTwVp5/After.jpg

Last edited 12 days ago by ugyensupport (previous) (diff)

#15 @abduremon
12 days ago

Tested the patch in the mentioned environment. Alignment has improved and spacing looks better, but it’s still slightly off-center. A small adjustment is needed to achieve perfect centering.

#16 @ankitkumarshah
8 days ago

Hi everyone,

Thank you for testing the PR. I’ve made some changes on PR and re-tested it on my end. It appears that the icon is now perfectly centered, with both the top and bottom spacing measuring 13px.

Screenshots attached for reference.

https://i.postimg.cc/mkNrD43k/Screenshot-2026-04-13-at-4-38-58-PM.png

https://i.postimg.cc/J7gxcLWs/Screenshot-2026-04-13-at-4-46-32-PM.png

#17 @ankitmaru
8 days ago

Thanks for the patch.

https://i.postimg.cc/dtC22NvD/Screenshot-2026-04-13-at-6-36-16-PM.png

Tested on my end looks good.

#18 @darshitrajyaguru97
6 days ago

Patch Testing Report

Patch Tested: https://github.com/WordPress/wordpress-develop/pull/11463

Environment

  • WordPress: 7.0-RC2
  • PHP: 8.3.30
  • Server: nginx/1.29.7
  • Database: MySQL 8.4.8
  • Browser: Chrome
  • OS: Windows
  • Theme: Twenty Twenty-Five
  • Plugins: None (including MU plugins)

Steps to Reproduce

# Navigate to Users → Edit User
# Click on "Set New Password"
# Observe the alignment of the eye (visibility toggle) icon with the "Hide" text

Before Applying the Patch

  • The dashicon eye icon appears slightly lower than the "Hide" text, causing misalignment.

After Applying the Patch

  • The eye icon is properly aligned with the "Hide" text.

Expected Behavior

  • The password visibility toggle (eye icon) should be vertically aligned with the "Hide" text.

Result

  • ✅ Patch successfully resolves the issue.

Additional Notes

  • Issue reproducible on WordPress 7.0-RC2 prior to the patch.
  • No regressions observed after applying the patch.
  • Tested on a clean install with the default theme.

#19 @khushdoms
5 days ago

Tested the issue on the latest trunk version (7.1) - WordPress: 7.1-alpha-62161-src.

Environment:

  • WordPress: trunk (7.1)
  • PHP: 8.3.30
  • Server: nginx/1.29.7
  • Database: mysqli (Server: 8.4.8 / Client: mysqlnd 8.3.30)
  • Browser: Chrome 147.0.0.0
  • OS: Windows 10/11
  • Theme: Twenty Twenty-Five 1.4
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.1

Steps:

  1. Navigated to Users → Edit User
  2. Clicked "Set New Password"
  3. Checked alignment of the eye icon and "Hide" text

Result:
The alignment issue is not reproducible in the current version. The dashicon appears properly aligned with the text.

Conclusion:
It seems the issue may already be resolved in the latest version.

#20 @monzuralam
4 days ago

Test Report

This report validates that the indicated patch addresses the issue.

Patch tested: https://github.com/WordPress/wordpress-develop/pull/11463

Environment

  • OS: Windows 11
  • Web Server: Apache/2.4.54
  • PHP: 8.2.25
  • WordPress: 7.0-RC2
  • Browser: Chrome 146.0.7680.178
  • Theme: Twenty Twenty-Five 1.4
  • Active Plugins: None

Steps to Test

  • Navigated to Users → Edit User
  • Clicked "Set New Password"
  • Checked alignment of the eye icon and "Hide" text

Expected Results

✅ Patch successfully resolves the issue.

#21 @nikunj8866
6 hours ago

  • Keywords needs-testing removed
Note: See TracTickets for help on using tickets.