Skip to content

Commit 4f42a8f

Browse files
update docs
1 parent 0bc7854 commit 4f42a8f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docs/data/material/components/switches/switches.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ You can change the placement of the label:
7171

7272
## Accessibility
7373

74-
- It will render an element with the `checkbox` role not `switch` role since this
75-
role isn't widely supported yet. Please test first if assistive technology of your
76-
target audience supports this role properly. Then you can change the role with
77-
`<Switch inputProps={{ role: 'switch' }}>`
7874
- All form controls should have labels, and this includes radio buttons, checkboxes, and switches. In most cases, this is done by using the `<label>` element ([FormControlLabel](/material-ui/api/form-control-label/)).
7975
- When a label can't be used, it's necessary to add an attribute directly to the input component.
8076
In this case, you can apply the additional attribute (for example `aria-label`, `aria-labelledby`, `title`) via the `inputProps` prop.

0 commit comments

Comments
 (0)