Replaced :invalid with :user-invalid so inputs won't be invalid on page load

This commit is contained in:
Asaf Gartner 2024-06-20 18:28:42 +03:00
parent 66805bc2b6
commit f37635829d
2 changed files with 5 additions and 5 deletions

View File

@ -8130,13 +8130,13 @@ pre,
}
.error :is(.hmn-form input),
.hmn-form input.error,
.hmn-form input:invalid,
.hmn-form input:user-invalid,
.error :is(.hmn-form textarea),
.hmn-form textarea.error,
.hmn-form textarea:invalid,
.hmn-form textarea:user-invalid,
.error :is(.hmn-form select),
.hmn-form select.error,
.hmn-form select:invalid {
.hmn-form select:user-invalid {
border-color: var(--border-color-error);
}
.hmn-form input:disabled,

View File

@ -23,7 +23,7 @@
.error &,
&.error,
&:invalid {
&:user-invalid {
border-color: var(--border-color-error);
}
@ -92,4 +92,4 @@
border-bottom: 1px solid var(--border-color);
}
}
}
}