#2784·hanko

Password visibility toggle ("show password" eye icon) in hanko-elements password inputs

Author: Stephan2704Created Jul 26, 2026Updated Jul 27, 2026

Is your feature request related to a problem?

Users typing passwords in <hanko-auth>/<hanko-login>/<hanko-profile> cannot verify what they typed — the password inputs have no show/hide toggle, and there is no confirm-password field on set/change. Mistyped passwords at registration are only discovered at next login, which is costly on an auth surface. I checked the element source and past releases: the feature appears to have never existed in hanko-elements, and I found no prior issue requesting it.

Describe the solution you'd like

A standard eye/eye-off toggle button inside the password input (toggling type="password"type="text"), with proper aria-label/aria-pressed, themeable via the existing CSS variables, and i18n'd through the existing translations mechanism. Notably, your team already shipped exactly this pattern in the hanko-keycloak-plugin login theme (https://github.com/teamhanko/hanko-keycloak-plugin/pull/24, merged 2023) — this request is to bring the same UX to hanko-elements.

Describe alternatives you've considered

Forking hanko-elements just for this (heavy maintenance for a small UI affordance); browser extensions/password managers (not a product answer). A confirm-password field on set/change would address the same root problem and could be a follow-up or option.

Additional context

Self-hosting Hanko v3.0.4 in production (DSGVO-focused German SaaS). Happy to contribute the PR myself if the team is open to it.