Skip to content

Commit d783ebd

Browse files
author
Vianpyro
committed
Enhance form field validation styles by adding user-valid state and correcting gradient opacity
1 parent 4219771 commit d783ebd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/styles/form_field.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@
3939
border-bottom-color: var(--color-error);
4040
}
4141

42+
.form-field input.filled:user-valid {
43+
border-bottom-color: var(--color-success);
44+
}
45+
4246
.form-field input.filled:user-invalid:not(:focus) {
4347
background: linear-gradient(
4448
to top,
45-
rgb(from var(--color-error) r g b / 0.1) 0%,
49+
rgb(from var(--color-error) r g b / 10%) 0%,
4650
transparent 100%
4751
);
4852
}
@@ -51,10 +55,6 @@
5155
color: var(--color-error);
5256
}
5357

54-
.form-field input.filled:user-valid {
55-
border-bottom-color: var(--color-success);
56-
}
57-
5858
.form-field input.filled:user-valid + label {
5959
color: var(--color-success);
6060
}

0 commit comments

Comments
 (0)