diff --git a/docs/components/forms.md b/docs/components/forms.md index 0028c2b85f..ef56a9e890 100644 --- a/docs/components/forms.md +++ b/docs/components/forms.md @@ -764,6 +764,33 @@ Custom checkboxes and radios can also be disabled. Add the `disabled` boolean at {% endexample %} +#### Validation states + +Add other states to your custom forms with our validation classes. + +{% example html %} +
+ +
+
+ +
+
+ +
+{% endexample %} #### Stacked diff --git a/scss/mixins/_forms.scss b/scss/mixins/_forms.scss index b87429c1b0..fde8295314 100644 --- a/scss/mixins/_forms.scss +++ b/scss/mixins/_forms.scss @@ -14,7 +14,8 @@ &.radio label, &.checkbox label, &.radio-inline label, - &.checkbox-inline label { + &.checkbox-inline label, + .custom-control { color: $color; } // Set the border and box shadow on specific inputs to match