diff options
| author | Patrick Yeo <[email protected]> | 2017-10-02 20:37:28 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-10-02 20:37:28 -0700 |
| commit | 728f5792867a96300b78b75b91e5be31e44a640f (patch) | |
| tree | f3f3ac71b15466d4d6784d0dbb62f641a14f8c1b | |
| parent | acaa6d6f239050a6c9444b4afc0c90a387e2b729 (diff) | |
| download | bootstrap-728f5792867a96300b78b75b91e5be31e44a640f.tar.xz bootstrap-728f5792867a96300b78b75b91e5be31e44a640f.zip | |
Form Validation `.valid-feedback` and `.valid-tooltip` are unstyled (#23527)
| -rw-r--r-- | scss/_forms.scss | 22 | ||||
| -rw-r--r-- | scss/mixins/_forms.scss | 22 |
2 files changed, 22 insertions, 22 deletions
diff --git a/scss/_forms.scss b/scss/_forms.scss index 1c661917b..0ece186d9 100644 --- a/scss/_forms.scss +++ b/scss/_forms.scss @@ -258,28 +258,6 @@ select.form-control-lg { // pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for // 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("invalid", $form-feedback-invalid-color); diff --git a/scss/mixins/_forms.scss b/scss/mixins/_forms.scss index d38c7a819..6403f469d 100644 --- a/scss/mixins/_forms.scss +++ b/scss/mixins/_forms.scss @@ -23,6 +23,28 @@ @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, .custom-select { .was-validated &:#{$state}, |
