mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Form Validation .valid-feedback
and .valid-tooltip
are unstyled (#23527)
This commit is contained in:
parent
acaa6d6f23
commit
728f579286
@ -258,28 +258,6 @@ select.form-control-lg {
|
|||||||
// pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for
|
// pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for
|
||||||
// server side validation.
|
// server side validation.
|
||||||
|
|
||||||
.invalid-feedback {
|
|
||||||
display: none;
|
|
||||||
margin-top: .25rem;
|
|
||||||
font-size: .875rem;
|
|
||||||
color: $form-feedback-invalid-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
.invalid-tooltip {
|
|
||||||
position: absolute;
|
|
||||||
top: 100%;
|
|
||||||
z-index: 5;
|
|
||||||
display: none;
|
|
||||||
width: 250px;
|
|
||||||
padding: .5rem;
|
|
||||||
margin-top: .1rem;
|
|
||||||
font-size: .875rem;
|
|
||||||
line-height: 1;
|
|
||||||
color: #fff;
|
|
||||||
background-color: rgba($form-feedback-invalid-color,.8);
|
|
||||||
border-radius: .2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include form-validation-state("valid", $form-feedback-valid-color);
|
@include form-validation-state("valid", $form-feedback-valid-color);
|
||||||
@include form-validation-state("invalid", $form-feedback-invalid-color);
|
@include form-validation-state("invalid", $form-feedback-invalid-color);
|
||||||
|
|
||||||
|
@ -23,6 +23,28 @@
|
|||||||
|
|
||||||
@mixin form-validation-state($state, $color) {
|
@mixin form-validation-state($state, $color) {
|
||||||
|
|
||||||
|
.#{$state}-feedback {
|
||||||
|
display: none;
|
||||||
|
margin-top: .25rem;
|
||||||
|
font-size: .875rem;
|
||||||
|
color: $color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.#{$state}-tooltip {
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
z-index: 5;
|
||||||
|
display: none;
|
||||||
|
width: 250px;
|
||||||
|
padding: .5rem;
|
||||||
|
margin-top: .1rem;
|
||||||
|
font-size: .875rem;
|
||||||
|
line-height: 1;
|
||||||
|
color: #fff;
|
||||||
|
background-color: rgba($color,.8);
|
||||||
|
border-radius: .2rem;
|
||||||
|
}
|
||||||
|
|
||||||
.form-control,
|
.form-control,
|
||||||
.custom-select {
|
.custom-select {
|
||||||
.was-validated &:#{$state},
|
.was-validated &:#{$state},
|
||||||
|
Loading…
Reference in New Issue
Block a user