WordPress.org

Make WordPress Core

Opened 9 months ago

Last modified 9 months ago

#52093 new enhancement

Open password field on click of New Password label on profile.php

Reported by: guddu1315 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 4.3
Component: Users Keywords:
Focuses: ui, javascript, administration Cc:

Description (last modified by hellofromTonya)

Enhancement Proposal:

Where: In the Account Management section of the user's profile

What: Trigger opening the password field when clicking on the New Password label

The click event of every field on profile.php cursor focuses on the input field next to it. But that is not the case with "New Password" label.

The enhancement proposal makes the new password label consistent with the other labels.

Attachments (1)

trigger-password-field.png (144.4 KB) - added by guddu1315 9 months ago.

Download all attachments as: .zip

Change History (6)

#1 @sabernhardt
9 months ago

  • Focuses javascript added; accessibility css removed

This might be related to #52086

This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.


9 months ago

#3 @hellofromTonya
9 months ago

  • Keywords close added

Hello @guddu1315,

Welcome to WordPress Core Trac! Thank you for the ticket.

I was unable to reproduce this problem when no plugins are active and using the Twenty Twenty-One theme. Tested on Safari, Firefox, and Chrome.

I'm wondering if there is a jQuery issue or conflict with a plugin or theme on your site.

WordPress 5.6 updated the bundled jQuery version to 3.5.1. If you experience issues after the update with elements like sliders, buttons, or similar, it may be related to a plugin or theme being incompatible with the new version of jQuery, for cases like this the Enable jQuery Migrate Helper plugin may help you out.

See these posts for more details:

If possible, try this:

  • Disable all plugins
  • Activate a default theme such as Twenty Twenty-One
  • Go to a user profile and click on Set New Password
  • Does the field appear?

I'm marking this ticket as a close worksforme candidate, as I suspect it's due to a plugin or theme rather than Core. Don't worry. Once we get more information, we will investigate and advise.

#4 @guddu1315
9 months ago

Hi @hellofromTonya

I think you misunderstood or may be I was not clear enough :)

I am checking this on default WordPress installation with no plugin active or installed. If I click on "Set new password" then the field opens. No problem in that.
Let me explain this in detail.

So if you check the click event of every field on profile.php cursor focuses on the input field next to it. But that is not the case with "New Password" label.

If you click on "New Password" label it should open the password field to maintain the consistency with other labels.

Thanks

#5 @hellofromTonya
9 months ago

  • Description modified (diff)
  • Keywords close removed
  • Version changed from 5.6 to 4.3

You're right @guddu1315. I did misunderstand. Thank you for providing more context and details.

I've revised the enhancement description accordingly. Please review and further refine if needed.

Also note, the set new password label, button, and password field are not new to 5.6, though the wording was refined in 5.6. Setting the Version to 4.3, which is covered by #32589, [49248].

Last edited 9 months ago by hellofromTonya (previous) (diff)
Note: See TracTickets for help on using tickets.