diff options
author | Martijn Cuppens <martijn.cuppens@gmail.com> | 2020-06-04 16:59:24 +0300 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2020-06-16 05:04:19 +0300 |
commit | 8b7b234fd1c840a23ac2ca2ba69a3a2a2abf3100 (patch) | |
tree | 7aaadebf416a6a281c2c53fdf192e6725ce7be64 /site/content/docs/5.0/forms | |
parent | 1a0a0858efa0e1e3c6bebd38058df8ad39ca27a5 (diff) |
Switch to btn-check
Diffstat (limited to 'site/content/docs/5.0/forms')
-rw-r--r-- | site/content/docs/5.0/forms/checks.md | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/site/content/docs/5.0/forms/checks.md b/site/content/docs/5.0/forms/checks.md index fec40b962b..a8b3666258 100644 --- a/site/content/docs/5.0/forms/checks.md +++ b/site/content/docs/5.0/forms/checks.md @@ -214,16 +214,16 @@ Omit the wrapping `.form-check` for checkboxes and radios that have no label tex ### Checkbox toggle buttons -Bootstrap's `.btn` styles can be applied to `<label>`s, to provide checkbox style button toggling. Add an input with a `.btn-toggle` class as previous sibling to toggle the input state. +Bootstrap's `.btn` styles can be applied to `<label>`s, to provide checkbox style button toggling. Add an input with a `.btn-check` class as previous sibling to toggle the input state. {{< example >}} -<input type="checkbox" class="btn-toggle" id="btn-toggle" autocomplete="off"> -<label class="btn btn-primary" for="btn-toggle">Single toggle</label> +<input type="checkbox" class="btn-check" id="btn-check" autocomplete="off"> +<label class="btn btn-primary" for="btn-check">Single toggle</label> {{< /example >}} {{< example >}} -<input type="checkbox" class="btn-toggle" id="btn-toggle-2" checked autocomplete="off"> -<label class="btn btn-primary" for="btn-toggle-2">Checked</label> +<input type="checkbox" class="btn-check" id="btn-check-2" checked autocomplete="off"> +<label class="btn btn-primary" for="btn-check-2">Checked</label> {{< /example >}} ### Radio toggle buttons @@ -232,13 +232,13 @@ Toggle buttons can be grouped in a [button group]({{< docsref "/components/butto {{< example >}} <div class="btn-group"> - <input type="radio" class="btn-toggle" name="options" id="option1" autocomplete="off" checked> + <input type="radio" class="btn-check" name="options" id="option1" autocomplete="off" checked> <label class="btn btn-secondary" for="option1">Checked</label> - <input type="radio" class="btn-toggle" name="options" id="option2" autocomplete="off"> + <input type="radio" class="btn-check" name="options" id="option2" autocomplete="off"> <label class="btn btn-secondary" for="option2">Radio</label> - <input type="radio" class="btn-toggle" name="options" id="option3" autocomplete="off"> + <input type="radio" class="btn-check" name="options" id="option3" autocomplete="off"> <label class="btn btn-secondary" for="option3">Radio</label> </div> {{< /example >}} @@ -246,17 +246,17 @@ Toggle buttons can be grouped in a [button group]({{< docsref "/components/butto ### Outlined styles {{< example >}} -<input type="checkbox" class="btn-toggle" id="btn-toggle-outlined" autocomplete="off"> -<label class="btn btn-outline-primary" for="btn-toggle-outlined">Single toggle</label><br> +<input type="checkbox" class="btn-check" id="btn-check-outlined" autocomplete="off"> +<label class="btn btn-outline-primary" for="btn-check-outlined">Single toggle</label><br> -<input type="checkbox" class="btn-toggle" id="btn-toggle-2-outlined" checked autocomplete="off"> -<label class="btn btn-outline-secondary" for="btn-toggle-2-outlined">Checked</label><br> +<input type="checkbox" class="btn-check" id="btn-check-2-outlined" checked autocomplete="off"> +<label class="btn btn-outline-secondary" for="btn-check-2-outlined">Checked</label><br> <div class="btn-group"> - <input type="radio" class="btn-toggle" name="options-outlined" id="success-outlined" autocomplete="off" checked> + <input type="radio" class="btn-check" name="options-outlined" id="success-outlined" autocomplete="off" checked> <label class="btn btn-outline-success" for="success-outlined">Checked success radio</label> - <input type="radio" class="btn-toggle" name="options-outlined" id="danger-outlined" autocomplete="off"> + <input type="radio" class="btn-check" name="options-outlined" id="danger-outlined" autocomplete="off"> <label class="btn btn-outline-danger" for="danger-outlined">Danger radio</label> </div> {{< /example >}} |