Replaced :invalid with :user-invalid so inputs won't be invalid on page load
This commit is contained in:
parent
66805bc2b6
commit
f37635829d
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue