1 parent 8c208be commit 39d5b9dCopy full SHA for 39d5b9d
1 file changed
web/scripts/register.js
@@ -12,9 +12,13 @@ document.addEventListener("DOMContentLoaded", () => {
12
const setPasswordStyle = (input, isValid) => {
13
if (!input) return;
14
if (isValid) {
15
- input.style.borderColor = "";
16
- input.style.color = "";
17
- input.style.boxShadow = "";
+ input.style.borderColor = "#16a34a";
+ input.style.color = "#166534";
+ 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
+ }
22
return;
23
}
24
input.style.borderColor = "#b91c1c";
0 commit comments