]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
examples: Add `role="switch"` to switches (#35022)
authorJulien Déramond <julien.deramond@orange.com>
Tue, 28 Sep 2021 09:28:30 +0000 (11:28 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Sep 2021 09:28:30 +0000 (12:28 +0300)
site/content/docs/5.1/examples/cheatsheet-rtl/index.html
site/content/docs/5.1/examples/cheatsheet/index.html

index d38f17c2e2aa3161fdf445d263e65fc63a7be466..04afcbaf4bab77f9cff20aa2b56c4da7fbbdfe0f 100644 (file)
@@ -355,7 +355,7 @@ direction: rtl
             <input type="file" class="form-control" id="customFile">
           </div>
           <div class="mb-3 form-check form-switch">
-            <input class="form-check-input" type="checkbox" id="flexSwitchCheckChecked" checked>
+            <input class="form-check-input" type="checkbox" role="switch" id="flexSwitchCheckChecked" checked>
             <label class="form-check-label" for="flexSwitchCheckChecked">زر على شكل مفتاح اختيار.</label>
           </div>
           <div class="mb-3">
@@ -411,7 +411,7 @@ direction: rtl
               <input type="file" class="form-control" id="disabledCustomFile" disabled>
             </div>
             <div class="mb-3 form-check form-switch">
-              <input class="form-check-input" type="checkbox" id="disabledSwitchCheckChecked" checked disabled>
+              <input class="form-check-input" type="checkbox" role="switch" id="disabledSwitchCheckChecked" checked disabled>
               <label class="form-check-label" for="disabledSwitchCheckChecked">زر معطل على شكل مفتاح اختيار.</label>
             </div>
             <div class="mb-3">
index 29e8bf63957ccdf96a3c5e8e7eef60eb96cbcc28..d68e2623389d9dace900e2d8defb18c325941178 100644 (file)
@@ -354,7 +354,7 @@ body_class: "bg-light"
             <input type="file" class="form-control" id="customFile">
           </div>
           <div class="mb-3 form-check form-switch">
-            <input class="form-check-input" type="checkbox" id="flexSwitchCheckChecked" checked>
+            <input class="form-check-input" type="checkbox" role="switch" id="flexSwitchCheckChecked" checked>
             <label class="form-check-label" for="flexSwitchCheckChecked">Checked switch checkbox input</label>
           </div>
           <div class="mb-3">
@@ -410,7 +410,7 @@ body_class: "bg-light"
               <input type="file" class="form-control" id="disabledCustomFile" disabled>
             </div>
             <div class="mb-3 form-check form-switch">
-              <input class="form-check-input" type="checkbox" id="disabledSwitchCheckChecked" checked disabled>
+              <input class="form-check-input" type="checkbox" role="switch" id="disabledSwitchCheckChecked" checked disabled>
               <label class="form-check-label" for="disabledSwitchCheckChecked">Disabled checked switch checkbox input</label>
             </div>
             <div class="mb-3">