Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions site/src/content/docs/forms/checks-radios.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ Put your checkboxes, radios, and switches on the opposite side with the `.form-c
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.

<Example code={`<div>
<input class="form-check-input" type="checkbox" id="checkboxNoLabel" value="" aria-label="...">
<input class="form-check-input" type="checkbox" id="checkboxNoLabel" value="" aria-label="Checkbox without label">
</div>

<div>
<input class="form-check-input" type="radio" name="radioNoLabel" id="radioNoLabel1" value="" aria-label="...">
<input class="form-check-input" type="radio" name="radioNoLabel" id="radioNoLabel1" value="" aria-label="Radio button without label">
</div>`} />

## Toggle buttons
Expand Down