diff --git a/docs/components/forms.md b/docs/components/forms.md index ce0124f1ab4c218cc0c5d61d2aad23aa5fca10b0..c3897a193ff7217930ff033839255b474ddb1c6c 100644 --- a/docs/components/forms.md +++ b/docs/components/forms.md @@ -634,7 +634,7 @@ Block help text—for below inputs or for longer lines of help text—can be eas ## Validation -Bootstrap includes validation styles for danger, warning, and success states on form controls. To use, add `.has-warning`, `.has-danger`, or `.has-success` to the parent element. Any `.form-control-label`, `.form-control`, and `.text-help` within that element will receive the validation styles. +Bootstrap includes validation styles for danger, warning, and success states on form controls. To use, add `.has-danger` or `.has-success` to the parent element. Any `.form-control-label`, `.form-control`, and `.text-help` within that element will receive the validation styles. {% comment %} {% callout warning %} @@ -651,10 +651,6 @@ Ensure that an alternative indication of state is also provided. For instance, y <label class="form-control-label" for="inputSuccess1">Input with success</label> <input type="text" class="form-control form-control-success" id="inputSuccess1"> </div> -<div class="form-group has-warning"> - <label class="form-control-label" for="inputWarning1">Input with warning</label> - <input type="text" class="form-control form-control-warning" id="inputWarning1"> -</div> <div class="form-group has-danger"> <label class="form-control-label" for="inputDanger1">Input with danger</label> <input type="text" class="form-control form-control-danger" id="inputDanger1"> @@ -666,12 +662,6 @@ Ensure that an alternative indication of state is also provided. For instance, y Checkbox with success </label> </div> -<div class="checkbox has-warning"> - <label> - <input type="checkbox" id="checkboxWarning" value="option1"> - Checkbox with warning - </label> -</div> <div class="checkbox has-danger"> <label> <input type="checkbox" id="checkboxDanger" value="option1"> diff --git a/scss/_forms.scss b/scss/_forms.scss index 0d5e364ec68495606838da5b0565693c8d334d1c..d5a174f162935afd6f4c46880286395cfee85c43 100644 --- a/scss/_forms.scss +++ b/scss/_forms.scss @@ -258,7 +258,6 @@ input[type="checkbox"] { // Apply contextual and semantic states to individual form controls. .form-control-success, -.form-control-warning, .form-control-danger { padding-right: ($input-padding-x * 3); background-repeat: no-repeat; @@ -275,14 +274,6 @@ input[type="checkbox"] { } } -.has-warning { - @include form-control-validation($brand-warning); - - .form-control-warning { - background-image: url($form-icon-warning); - } -} - .has-danger { @include form-control-validation($brand-danger); diff --git a/scss/_variables.scss b/scss/_variables.scss index cb478d76a15ec031f51a76d9c8d8fa19beadc27d..99a71a05ccd5b6405fd3ceaf4146dc801cad8377 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -329,7 +329,6 @@ $custom-form-description-color-disabled: #767676 !default; // Form validation icons $form-icon-success: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MTIgNzkyIj48cGF0aCBmaWxsPSIjNWNiODVjIiBkPSJNMjMzLjggNjEwYy0xMy4zIDAtMjYtNi0zNC0xNi44TDkwLjUgNDQ4LjhDNzYuMyA0MzAgODAgNDAzLjMgOTguOCAzODljMTguOC0xNC4yIDQ1LjUtMTAuNCA1OS44IDguNGw3MiA5NUw0NTEuMyAyNDJjMTIuNS0yMCAzOC44LTI2LjIgNTguOC0xMy43IDIwIDEyLjQgMjYgMzguNyAxMy43IDU4LjhMMjcwIDU5MGMtNy40IDEyLTIwLjIgMTkuNC0zNC4zIDIwaC0yeiIvPjwvc3ZnPg==" !default; -$form-icon-warning: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MTIgNzkyIj48cGF0aCBmaWxsPSIjZjBhZDRlIiBkPSJNNjAzIDY0MC4ybC0yNzguNS01MDljLTMuOC02LjYtMTAuOC0xMC42LTE4LjUtMTAuNnMtMTQuNyA0LTE4LjUgMTAuNkw5IDY0MC4yYy0zLjcgNi41LTMuNiAxNC40LjIgMjAuOCAzLjggNi41IDEwLjggMTAuNCAxOC4zIDEwLjRoNTU3YzcuNiAwIDE0LjYtNCAxOC40LTEwLjQgMy41LTYuNCAzLjYtMTQuNCAwLTIwLjh6bS0yNjYuNC0zMGgtNjEuMlY1NDloNjEuMnY2MS4yem0wLTEwN2gtNjEuMlYzMDRoNjEuMnYxOTl6Ii8+PC9zdmc+" !default; $form-icon-danger: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MTIgNzkyIj48cGF0aCBmaWxsPSIjZDk1MzRmIiBkPSJNNDQ3IDU0NC40Yy0xNC40IDE0LjQtMzcuNiAxNC40LTUyIDBsLTg5LTkyLjctODkgOTIuN2MtMTQuNSAxNC40LTM3LjcgMTQuNC01MiAwLTE0LjQtMTQuNC0xNC40LTM3LjYgMC01Mmw5Mi40LTk2LjMtOTIuNC05Ni4zYy0xNC40LTE0LjQtMTQuNC0zNy42IDAtNTJzMzcuNi0xNC4zIDUyIDBsODkgOTIuOCA4OS4yLTkyLjdjMTQuNC0xNC40IDM3LjYtMTQuNCA1MiAwIDE0LjMgMTQuNCAxNC4zIDM3LjYgMCA1MkwzNTQuNiAzOTZsOTIuNCA5Ni40YzE0LjQgMTQuNCAxNC40IDM3LjYgMCA1MnoiLz48L3N2Zz4=" !default;