liveBook · Manning

Password reveal toggle

As explained in Architecting Accessibility

A password reveal toggle is an interface control that switches a password field between masked and visible text.

A password reveal toggle lets people check a masked password for typos or a pasted wrong value before submitting. This can reduce invalid submissions and account lockouts, especially for people with cognitive or motor disabilities. Masking still helps limit shoulder surfing. section 7.3.1

Make the control usable and understandable:

  • Support keyboard access and show a visible focus indicator. section 7.3.1
  • Provide an accessible name and programmatically determined states, such as “Show password” and “Hide password.” section 7.3.1

Reduce repeated typing

Use one password field with a reveal button instead of asking people to enter a new password twice to check for typos. section 7.3.1

Figure 7.1 An optional password show/hide toggle can be used to reveal and hide a masked password value to check for typing errors before submission.

See how an optional show/hide control reveals a masked value for checking before submission. section 7.3.1

How Architecting Accessibility covers it

How deep it goes
Defines the toggle and specifies keyboard access, focus, accessible naming, and programmatic states without providing implementation code.
Examples
Illustrates checking a masked password before submission and replacing duplicate password entry with a reveal button.
What you can do after
Apply an accessible reveal control so users can verify a password before submitting it.
How it connects
Connects masked password fields with typo checking, shoulder surfing, and account lockouts.

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.