← Hub · Open the micro-demo

Password fields: show/hide toggle + requirements (don’t spam aria-live)

Password UI has a few recurring accessibility pitfalls. Here’s a small checklist you can apply to almost any login / signup screen.

1) “Show password” must be a real control

2) Keep focus stable when toggling password visibility

Switching type=passwordtype=text can (depending on browser) reset cursor/selection or even shift focus.

3) Requirements UI: show it, but don’t announce on every keypress

A common mistake is updating requirements with aria-live on every input event. For many screen reader users, that becomes a nonstop stream of interruptions.

4) Caps Lock warning should be polite

5) Be password-manager friendly

Live example: Password fields demo.

Related: Form hints (aria-describedby), Inline errors, Error summaries.