Skip to content

Commit

Permalink
docs(forms): enhance TaC checkboxes accessibility and wording examples (
Browse files Browse the repository at this point in the history
#2002)

Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
Co-authored-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
  • Loading branch information
isabellechanclou authored Jul 5, 2023
1 parent bbc4a7d commit ca97b12
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions site/content/docs/5.3/forms/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ Custom feedback styles apply custom colors, borders, focus styles, and backgroun
<div class="col-12">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="invalidCheck" required>
<label class="form-check-label" for="invalidCheck">
Agree to terms and conditions
</label>
<!-- Keep this <label> written on one single line to avoid browsers adding an extra and unwanted space between the end of the label ("conditions") and the asterisk meaning the field is required -->
<label class="form-check-label" for="invalidCheck">By checking this box, I agree to the <a href="" target="_blank" aria-label="Terms and conditions (opens new window)">terms and conditions</a></label>
<div class="invalid-feedback">
You must agree before submitting.
</div>
Expand Down Expand Up @@ -150,9 +149,8 @@ While these feedback styles cannot be styled with CSS, you can still customize t
<div class="col-12">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="invalidCheck2" required>
<label class="form-check-label" for="invalidCheck2">
Agree to terms and conditions
</label>
<!-- Keep this <label> written on one single line to avoid browsers adding an extra and unwanted space between the end of the label ("conditions") and the asterisk meaning the field is required -->
<label class="form-check-label" for="invalidCheck2">By checking this box, I agree to the <a href="" target="_blank" aria-label="Terms and conditions (opens new window)">terms and conditions</a></label>
</div>
</div>
<div class="col-12">
Expand Down Expand Up @@ -222,9 +220,8 @@ To fix [issues with border radius](https://github.com/twbs/bootstrap/issues/2511
<div class="col-12">
<div class="form-check">
<input class="form-check-input is-invalid" type="checkbox" value="" id="invalidCheck3" aria-describedby="invalidCheck3Feedback" required>
<label class="form-check-label" for="invalidCheck3">
Agree to terms and conditions
</label>
<!-- Keep this <label> written on one single line to avoid browsers adding an extra and unwanted space between the end of the label ("conditions") and the asterisk meaning the field is required -->
<label class="form-check-label" for="invalidCheck3">By checking this box, I agree to the <a href="" target="_blank" aria-label="Terms and conditions (opens new window)">terms and conditions</a></label>
<div id="invalidCheck3Feedback" class="invalid-feedback">
You must agree before submitting.
</div>
Expand Down

0 comments on commit ca97b12

Please sign in to comment.