From 16f14172406fd88ddb21242ea361833ec19d4fc6 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 22 Dec 2017 16:13:01 -0800 Subject: [PATCH] Form check markup v2 (#25050) * match layout behaviors * ditch the indicator as separate element for psuedo-elements on the label * move disabled to attribute only on input * redo default inline check to support new markup * redo inline forms * clean up vars * update validation mixin to new structure * update checks in docs * linting for for/id attributes --- docs/4.0/components/dropdowns.md | 8 +- docs/4.0/components/forms.md | 301 ++++++++++++++----------------- docs/4.0/migration.md | 13 +- scss/_custom-forms.scss | 105 ++++++----- scss/_forms.scss | 51 ++---- scss/_variables.scss | 7 +- scss/mixins/_forms.scss | 18 +- 7 files changed, 235 insertions(+), 268 deletions(-) diff --git a/docs/4.0/components/dropdowns.md b/docs/4.0/components/dropdowns.md index 926729a3d9..b49e84f920 100644 --- a/docs/4.0/components/dropdowns.md +++ b/docs/4.0/components/dropdowns.md @@ -615,8 +615,8 @@ Put a form within a dropdown menu, or make it into a dropdown menu, and use [mar
-
@@ -639,8 +639,8 @@ Put a form within a dropdown menu, or make it into a dropdown menu, and use [mar
-
diff --git a/docs/4.0/components/forms.md b/docs/4.0/components/forms.md index d485ef4cdd..ee67ffa800 100644 --- a/docs/4.0/components/forms.md +++ b/docs/4.0/components/forms.md @@ -26,10 +26,8 @@ Here's a quick example to demonstrate Bootstrap's form styles. Keep reading for
- + +
@@ -154,7 +152,9 @@ If you want to have `` elements in your form styled as plain tex Default checkboxes and radios are improved upon with the help of `.form-check`, **a single class for both input types that improves the layout and behavior of their HTML elements**. Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many. -Disabled checkboxes and radios are supported, but to provide a `not-allowed` cursor on hover of the parent `