Make WordPress Core

Opened 5 years ago

Closed 3 months ago

Last modified 3 months ago

#55343 closed enhancement (fixed)

Add Tooltip to "Remember Me" (WP Login Form)

Reported by: generosus Owned by: rajinsharwar
Priority: normal Milestone: 7.1
Component: Login and Registration Version:
Severity: normal Keywords: tooltips has-patch i18n-change commit dev-reviewed
Cc: Focuses: ui, accessibility

Description

Currently, WordPress' login form has a checkbox labeled "Remember Me."

Over the years, there's been some debate over the verbiage used for "Remember Me" (say, versus "Stay Logged In" or "Keep Me Logged In") and what it really means.

To eliminate any confusion, this is to request the ​/addition of a tooltip next to "Remember Me" in the form of a question (?) mark. Further, the tooltip can offer a security warning to all users.

The content (text) for the tooltip could be:

"Selecting Remember Me reduces the number of times you’ll be asked to log in using this device. To keep your account secure, use this option only on your personal devices."

Also, in anticipation that this enhancement request will be approved, I would like to recommend updating the ​/affected codex page for the login form to add a code snippet that will allow developers to change the content (text) of the tooltip to suit their needs.

The above would be a nice addition or update to WordPress' login form.

Thank you.

Change History (40)

#1 @generosus
5 years ago

  • Keywords 2nd-opinion needs-docs needs-codex removed

#2 @generosus
5 years ago

Correction:

If approved, these are the affected WordPress documents:

​/Code Reference Page
​/Codex Page

Thank you.

#3 @generosus
5 years ago

  • Component Security → Login and Registration

#4 @oglekler
4 years ago

  • Focuses ui added
  • Keywords tooltips added

#5 @rajinsharwar
3 years ago

  • Keywords needs-patch added
  • Milestone Awaiting Review → 6.4
  • Type enhancement → task (blessed)
  • Version 5.9.1

Looking like a good improvement to the Login UI. Let's put this for 6.4

#6 @rajinsharwar
3 years ago

  • Owner set to rajinsharwar
  • Status new → assigned

#7 @SergeyBiryukov
3 years ago

  • Focuses accessibility added

Similar to #55546, this would depend on implementing accessible tooltips in core, see #51006.

#8 @joedolson
3 years ago

  • Milestone 6.4 → 6.5
  • Type task (blessed) → enhancement

#51006 has been moved to 6.5, so this ticket also needs to be bumped.

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


3 years ago

This ticket was mentioned in ​Slack in #core by audrasjb. ​View the logs.


3 years ago

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


3 years ago

#12 @swissspidy
3 years ago

  • Milestone 6.5 → 6.6

This ticket was mentioned in ​Slack in #core by oglekler. ​View the logs.


2 years ago

#14 @oglekler
2 years ago

  • Milestone 6.6 → Future Release

This ticket was discussed during bug scrub, and sadly, we have to move it to the Future releases with #51006. We will return it back when #51006 will be ready.

Add props fo @hellofromTonya and @audrasjb

This ticket was mentioned in ​PR #6918 on ​WordPress/wordpress-develop by ​@shub07.


2 years ago
#15

  • Keywords has-patch added; needs-patch removed
  • Add tooltip on side of Login page remember me button.
  • Can edit message of Tooltip.
  • Follow design same from ticket 51006.
  • Can be used to resolve 51006 if we make tooltip and tooltiptext by removing front selector.

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


2 years ago

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


21 months ago

#18 @joedolson
21 months ago

  • Milestone Future Release → 6.8

Adding this to the milestone for a use case related to #51006.

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


21 months ago

#20 @joedolson
21 months ago

  • Milestone 6.8 → 6.9

Punting along with #51006.

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


15 months ago

#22 @joedolson
15 months ago

  • Milestone 6.9 → Future Release

Punting this again. What we'd ideally like to do is implement tooltips using native CSS popovers, but we're waiting on Firefox to complete their implementation.

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


7 months ago

#24 @joedolson
7 months ago

  • Milestone Future Release → 7.1

With CSS anchor positioning having meet the basic criteria for ​WordPress browser support, let's go ahead and work on a new patch to get this resolved using native tooltips.

#25 @afercia
5 months ago

On a general note, I would recommend to keep the usage of tooltips strictly limited to the purpose of visually exposing the accessible name of a control.

That's the pattern WordPress has adopted in the Block editor, when a control does not provide a visible label.

Start using tooltips for any sort or purpose like additional descriptions, context, and the like would introduce a pattern that isn't predictable and that would provide unexpected. I'm also pretty sure that providing tooltips for any sort of purpose will be largely abused by plugins and themes unless WordPress provides strict guidance and checks to avoid that,

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


5 months ago

#27 @wildworks
4 months ago

​The PR automatically linked to this ticket seems to have an incorrect URL for some reason.

This is the correct PR associated with this ticket: ​https://github.com/WordPress/wordpress-develop/pull/12212

#28 @joedolson
4 months ago

  • Resolution → fixed
  • Status assigned → closed

In 62741:

Administration: Add function for tooltips and toggle tips.

Add functions wp_get_tooltip() and wp_get_toggletip() to support adding these popover interfaces in the core admin. wp_get_tooltip() is used as mechanism to expose accessible names when a control has focus or hover, and wp_get_toggletip() implements a popover disclosure dialog to provide extended help information.

Functions generate accessible markup, written to avoid excess verbosity for screen readers and apply best practices for voice command users as much as possible for icon-only controls.

Add an initial implementation of a toggle tip to explain the 'remember me' option on the login screen.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/12212

Props joedolson, oglekler, afercia, davidbaumwald, rajinsharwar, mukesh27, swissspidy, sirlouen, rutviksavsani, wildworks, ayazahmed12, generosus, sergeybiryukov.
Fixes #51006, #55343.

This ticket was mentioned in ​PR #12629 on ​WordPress/wordpress-develop by ​@jeremyfelt.


4 months ago
#29

wp_get_toggletip() has similarly documented "optional" $args as wp_get_tooltip(). This updates the function signature to match.

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

#30 @jeremyfelt
4 months ago

@joedolson I added a quick PR to match the function signature for wp_get_toggletip() to match what I believe is the intent: an optional $args array.

​@joedolson commented on ​PR #12629:


4 months ago
#31

Committed this change in https://core.trac.wordpress.org/changeset/62816, and props'ed you.

Closing this.

#33 @johnbillion
3 months ago

  • Keywords dev-feedback has-patch removed
  • Resolution fixed
  • Status closed → reopened

Reopening to propose that the text in this tooltip is adjusted to be more accurate.

This ticket was mentioned in ​PR #12951 on ​WordPress/wordpress-develop by ​@johnbillion.


3 months ago
#34

  • Keywords has-patch added

The "Remember Me" checkbox toggletip text isn't entirely accurate. It doesn't affect the number of times the user is asked to log in, it increases the length of time until they're asked to log in again.

Trac ticket: Core-55343

#35 @sabernhardt
3 months ago

  • Keywords i18n-change added

(The string change could fit better as a new ticket at this point in the cycle.)

#36 @joedolson
3 months ago

  • Keywords commit dev-feedback added

Marking this for commit and request second review @johnbillion, per the current pre-branching RC conditions.

#37 @johnbillion
3 months ago

  • Keywords dev-reviewed added; dev-feedback removed

👍

#38 @wildworks
3 months ago

Currently, the trunk branch and the 7.1 branch are separate. Since the second review is complete, I will make commits to each of these branches.

#39 @wildworks
3 months ago

  • Resolution → fixed
  • Status reopened → closed

In 63175:

Login and Registration: Clarify the "Remember Me" toggletip text.

The help text on the login screen stated that the option reduces how often you are asked to log in. It actually extends how long you stay logged in before being asked again, so the wording now describes that behavior.

Follow-up to [62741].
Props joedolson, johnbillion, sabernhardt, wildworks.
Fixes #55343.

#40 @wildworks
3 months ago

In 63176:

Login and Registration: Clarify the "Remember Me" toggletip text.

The help text on the login screen stated that the option reduces how often you are asked to log in. It actually extends how long you stay logged in before being asked again, so the wording now describes that behavior.

Follow-up to [62741].

Reviewed by johnbillion.
Merges [63175] to the 7.1 branch.

Props joedolson, johnbillion, sabernhardt, wildworks.
Fixes #55343.

Note: See TracTickets for help on using tickets.