Replies: 4 comments 3 replies
-
You see, Google already realized everyone was using it wrongly. And not to mention the password confirmation, but that is for another discussion :). |
Beta Was this translation helpful? Give feedback.
-
Already started 🙄 #767 I fear dropping it is not so straightforward for our use case. |
Beta Was this translation helpful? Give feedback.
-
Indeed, when looking at it with blank slate, the eye would intuitively indicate that you can see the password, while the crossed eye would be telling me that I can't.
Haha, agreed. I personally like the approach you suggested, using switch/checkbox, since this makes it quite clear that if the switch is ON, the password should be visible, and the other way around. I prefer the "Inline, short label version" and after it the "In the next line", while I like the least "Inline, long label version", though this is purely based on some subjective sense of taste, so I could be very wrong 😄 . If it is decided to go on with this change, I'd of course be willing to work on it. However, you did already provide most of the code. 😅 |
Beta Was this translation helpful? Give feedback.
-
Almost by accident, today I've landed at alphagov/govuk-design-system-backlog#240 and read their interesting rationale about stop using the confirmation input which we decided to keep. Additionally, I have read alphagov/govuk-design-system#2795 which could help us either, to re-evaluate our decision to keep the confirmation input 😇 or to finally improve the "Show" password actions. Lately I was thinking about combine them in just one and move it after the confirmation for improving the keyboard interaction. It's quite annoying to me to get trapped in the "Show" action when I wanted to go for the confirmation. But, as you can see in the previous link, they recommend still using two actions but with different labels to reduce the chances of confusing the user. Still, I wonder if would be enough one action properly labeled. E.g., "Show entered passwords", "Show password and password confirmation", or something similar. Last but not least, following other links found in the mentioned issue, I've realize about the security risk about these "Show password" actions (https://www.bleepingcomputer.com/news/security/google-microsoft-can-get-your-passwords-via-web-browsers-spellcheck/) and the possible and simple solution (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck#security_and_privacy_concerns) So, a lot of things for feeding a PBI 😉 |
Beta Was this translation helpful? Give feedback.
-
Before going into details, please make the effort to look at the picture below as if you were in front of this kind of form for the first time ever.
Look at the open, not crossed-out eye icon and answer sincerely: what is it telling you?
While I requested the use of this eye pattern in the code review, I found myself giving the first answer when doing manual testing. It was like, "Wait, is the dialog opening with the password inputs in the show state?".
Instead of opening the discussion in the PR itself and putting it at risk of getting blocked for a while, I decided to take notes and open a discussion here because there are a lot of web, desktop, and even mobile applications out there using the same "eye pattern". Without going any further, the Cockpit's login page uses it as we do. And we often don't question things that are widely used.
However, I think worth it to rethink the whole thing a bit. In the worst case (to me) we could end up keeping it as it is.
The first idea that came to my mind was proposing to use the icon the other way around: the crossed out variant when the input is obscuring the password and the other when not. But you could argue that it might be a bad idea to go against the grain. And you would be right: We shouldn't use a wide use "icon action" with a different meaning than the rest of the world... even though they are all wrong 😜
So, as an alternative and similar to the first approach sent by @balsa-asanovic when developing the feature, we could use a plain text action. I.e., to use the "Show" and "Hide" texts instead of icons. But we will be in the same dilemma: is the text representing the current input state, or is the action to be performed when clicking on it?
But, if the dilemma is about displaying the input status or the next action, could we solve it by displaying a visual hint in sync with the current status... 🤔 🤔 An old plain HTML checkbox with its label? A PatternFly Switch?
Click to show/hide a rough diff
Examples above inspired by https://joshwayne.com/posts/show-password/ article and a Friday afternoon chat with @joseivanlopez
Fun fact,
Do you know what? While doing a quick research (actually when writing this question) I found something interesting: a very big company was using the icon in the way I was about to suggest above, but if you go to its login form right now you will see a plain HTML "Show password" checkbox there (aka "Mostrar contraseña") . Which might mean something.
Beta Was this translation helpful? Give feedback.
All reactions