Don't display input error in red on typing
This commit is contained in:
parent
00e32b7cb4
commit
176806204c
2 changed files with 6 additions and 12 deletions
10
client/src/sass/bootstrap.scss
vendored
10
client/src/sass/bootstrap.scss
vendored
|
@ -301,16 +301,6 @@
|
||||||
color: pvar(--mainForegroundColor);
|
color: pvar(--mainForegroundColor);
|
||||||
background-color: pvar(--inputBackgroundColor);
|
background-color: pvar(--inputBackgroundColor);
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|
||||||
// Input box-shadow on focus
|
|
||||||
&:focus-within,
|
|
||||||
&:focus {
|
|
||||||
box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
|
|
||||||
|
|
||||||
&.input-error {
|
|
||||||
box-shadow: #{$focus-box-shadow-form} #{scale-color($red, $alpha: -75%)};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group {
|
.input-group {
|
||||||
|
|
|
@ -69,6 +69,10 @@
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.input-error:not(:focus) {
|
||||||
|
border-color: $red !important;
|
||||||
|
}
|
||||||
|
|
||||||
.form-error,
|
.form-error,
|
||||||
.form-warning {
|
.form-warning {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -79,8 +83,8 @@
|
||||||
color: $red;
|
color: $red;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-error {
|
.input-error:focus + .form-error {
|
||||||
border-color: $red !important;
|
color: pvar(--mainForegroundColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group-description {
|
.form-group-description {
|
||||||
|
|
Loading…
Reference in a new issue