Using email address on mobile login and keyboard layout

AI-generated summary

frictionel proposed a feature to improve mobile login experiences by changing the username input field type from “text” to “email.” This adjustment would automatically trigger the specialized email keyboard layout on mobile devices, eliminating the need for users to manually switch layouts to access characters like “@” and “.” frictionel confirmed that the change was tested on iOS with expected compatibility for Android, noting that it affects only the keyboard interface without altering the field’s functionality. To illustrate the improvement, frictionel provided screenshots comparing the standard keyboard layout against the optimized email layout. codinghorror requested visual evidence and clarification on testing across platforms before approval. After reviewing the provided images and explanations, codinghorror approved the change, stating, “Looks good to me thank you!” This update aligns with HTML5 standards for input fields to enhance usability on mobile devices.

I often wonder why login forms where you usually input your email address for the username are of type “text” while there is a special keyboard layout on mobile for faster typing of an email address. I think this a bug.

https://github.com/discourse/discourse/pull/4162/commits/10e7d1a5ceb41afd389ca8ffcdc08b45cb98709b

5 curtidas

Can you add screenshots here of before and after? How exactly does this affect the field? Was this tested on iOS and Android?

Yes, I have tested on current iOS and I expect no problem on Android. There is no impact on the field, it only changes the standard layout of the keyboard on your cell phone.

Usually when logging into your favourite site with an email address on your cell phone and they do not support this html5 input field type you’d have to switch the keyboard-layout to input the @ and/or . characters. When the username field on the login-form is correctly set up you don’t have to.

Before and After

6 curtidas

Looks good to me thank you!

1 curtida