Skip to content

Commit

Permalink
examples: Add role="switch" to switches (#35022)
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Sep 28, 2021
1 parent d610a3c commit b1e27a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions site/content/docs/5.1/examples/cheatsheet-rtl/index.html
Expand Up @@ -355,7 +355,7 @@ <h3>نظرة عامة</h3>
<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">
Expand Down Expand Up @@ -411,7 +411,7 @@ <h3>الحقول المعطلة</h3>
<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">
Expand Down
4 changes: 2 additions & 2 deletions site/content/docs/5.1/examples/cheatsheet/index.html
Expand Up @@ -354,7 +354,7 @@ <h3>Overview</h3>
<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">
Expand Down Expand Up @@ -410,7 +410,7 @@ <h3>Disabled forms</h3>
<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">
Expand Down

0 comments on commit b1e27a4

Please sign in to comment.