Password fields with an eye button to show or hide the password
CI / test (push) Successful in 3m22s
CI / build (push) Skipped
CI / deploy (push) Skipped

The login form and the new password page (both fields) use PasswordInput:
an eye button shows what was typed and hides it again (the caret stays in
the field; Edge's own reveal button is hidden so there are not two).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-26 17:23:59 +00:00
co-authored by Claude Opus 5.5
parent 9eff714e6a
commit 178416e069
4 changed files with 48 additions and 6 deletions
+11
View File
@@ -1803,3 +1803,14 @@ span.tarot-fan-card { cursor: default; }
.ask-forum-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ask-forum-body { display: flex; flex-direction: column; gap: 12px; }
.ask-forum-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
/* Password fields with an eye button (PasswordInput). */
.pw-input { position: relative; display: block; }
.pw-input .inp { padding-right: 48px; }
.pw-input input::-ms-reveal, .pw-input input::-ms-clear { display: none; }
.pw-eye {
position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: #8a93ab; cursor: pointer;
}
.pw-eye:hover, .pw-eye:focus-visible { color: var(--gold); }
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }