bootstrap-show-password-toggle
bootstrap-show-password-toggle copied to clipboard
Enhanced accessibility
As stated in Nicolas Steenhout's post regarding hide/how password feature, a little change could improve accessibility quite a lot: add aria-pressed
attribute, being true
| false
— no need for the switch
role, see Toggle Button's example on Inclusive Component by Heydon Pickering.
Thanks for such feature, it's really handy :)