feat(login): add show/hide password toggle on the sign-in form #328
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
/loginhas no password visibility toggle. Standard UX improvement, low effort. Mostly helps family members on shared devices who want to verify they typed the password correctly — especially relevant given the 60+ transcriber persona who benefits from any friction reduction.Non-goals
Proposed design
Eye-icon button sits inside the right edge of the password field:
<input>betweentype="password"andtype="text".type="button"— must NOT submit the form.aria-labeltoggles between "Passwort anzeigen" and "Passwort verbergen".aria-pressedreflects current state ("true" when password is visible).Implementation plan
Frontend
frontend/src/routes/login/+page.svelte:$stateforshowPassword; bindtypeaccordingly.i18n
2 new Paraglide keys:
login_show_password→ "Passwort anzeigen" / "Show password" / "Mostrar contraseña"login_hide_password→ "Passwort verbergen" / "Hide password" / "Ocultar contraseña"Tests
type="password". Click toggle →type="text"+aria-labelflips +aria-pressed="true". Click again → back to hidden.type="button"(does not submit parent form).Acceptance criteria
aria-label+aria-pressedreflect current stateCritical files