Skip to content

Commit 39d5b9d

Browse files
committed
fixed entry box to show green rather than blue for valid entries
1 parent 8c208be commit 39d5b9d

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

web/scripts/register.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ document.addEventListener("DOMContentLoaded", () => {
1212
const setPasswordStyle = (input, isValid) => {
1313
if (!input) return;
1414
if (isValid) {
15-
input.style.borderColor = "";
16-
input.style.color = "";
17-
input.style.boxShadow = "";
15+
input.style.borderColor = "#16a34a";
16+
input.style.color = "#166534";
17+
if (document.activeElement === input) {
18+
input.style.boxShadow = "0 0 0 3px rgba(22,163,74,0.2)";
19+
} else {
20+
input.style.boxShadow = "none";
21+
}
1822
return;
1923
}
2024
input.style.borderColor = "#b91c1c";

0 commit comments

Comments
 (0)