From 4308b67e59bfb47d386c3cc585e4a0fb759f6de6 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 8 Feb 2022 12:33:39 -0800 Subject: Add `.form-check-reverse` modifier class (#33606) * Add .form-check-reverse modifier class * Update checks-radios.md Co-authored-by: XhmikosR --- site/content/docs/5.1/forms/checks-radios.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'site/content/docs') diff --git a/site/content/docs/5.1/forms/checks-radios.md b/site/content/docs/5.1/forms/checks-radios.md index efd040de03..2ca72543ca 100644 --- a/site/content/docs/5.1/forms/checks-radios.md +++ b/site/content/docs/5.1/forms/checks-radios.md @@ -197,6 +197,30 @@ Group checkboxes or radios on the same horizontal row by adding `.form-check-inl {{< /example >}} +## Reverse + +Put your checkboxes, radios, and switches on the opposite side with the `.form-check-reverse` modifier class. + +{{< example >}} +
+ + +
+
+ + +
+ +
+ + +
+{{< /example >}} + ## Without labels Omit the wrapping `.form-check` for checkboxes and radios that have no label text. Remember to still provide some form of accessible name for assistive technologies (for instance, using `aria-label`). See the [forms overview accessibility]({{< docsref "/forms/overview#accessibility" >}}) section for details. -- cgit v1.2.3