Password reveal icon issue

Created on 15 August 2024, 5 months ago
Updated 21 August 2024, 4 months ago

Problem/Motivation

While logging into Drupal.org new user login page, the password reveal icon should show the password only when the icon is in a open state not when it is closed(struck out).

Proposed resolution

Tweak the following js accordingly
https://accounts.drupal.org/auth/resources/hsflg/login/drupal-theme/js/p...

๐Ÿ› Bug report
Status

Closed: works as designed

Component

Other

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Drupal Learn
  • Status changed to Closed: works as designed 5 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States drumm NY, US

    https://github.com/keycloak/keycloak/issues/22067 and the related pull request is where this was implemented. I canโ€™t speak for the Keycloak project, but I expect their goal was for the button to show what it does, not the current state. If there is a best practice showing this could be done better, I recommend opening an issue with the Keycloak project.

    I did a super quick survey of the first three sites I happened to think of:

    • accounts.google.com - has a show password checkbox
    • GitHub.com - no show password functionality
    • GitLab.com - matches accounts.drupal.orgโ€™s current behavior
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom jonathan1055

    I agree that there is no problem here and this issue can be Closed WAD.

    the password reveal icon should show the password only when the icon is in a open state not when it is closed(struck out)

    I know that there can be two ways to interpret icons like this, and it seems to me to be a common problem in many UIs. The quesion is "Does the icon/button/slider/switch indicate what the state of the option is now, or what it will do when it is clicked/tapped/pressed"

    From other examples of revealing passwords, the button is saying "this is what will happen if you press me", in this case "press the open eye to see what you get with an open eye (it reveals the pw)". The icon is not showing what has already happened, the current state. It is showing what the future state will be when you engage with it. So I think there is no problem here.

    ... and the full thread on Slack is https://drupal.slack.com/archives/C51GNJG91/p1723669955390359

Production build 0.71.5 2024