This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
I read the new web.dev
course on Forms today and learned a surprising fact about forms in Microsoft Edge.
Did you know that Edge provides a "password reveal" button in password fields? That's right; password fields include a little clickable "eye icon" to show and hide the entered password.
However, a great usability feature only available in one browser isn't great. 🤷‍♂️ If you want to provide password reveal functionality to all browsers, you still have to implement it yourself. And that means you have to get rid of Edge's little gimmick.
To hide Edge's additional password functionality, use this cryptic pseudo-element. 👇
::-ms-reveal {
display: none
}
If you're using Edge, play with the pseudo-element below.
[Interactive component: visit the article to see it...]
And if you want to learn more about this functionaliy, check the Microsoft Edge Reference docs.
Reply to Stefan
This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
Stefan Judis | Sciencx (2021-12-27T23:00:00+00:00) How to hide Microsoft Edge’s password reveal button (#snippet). Retrieved from https://www.scien.cx/2021/12/27/how-to-hide-microsoft-edges-password-reveal-button-snippet/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.