You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data/material/components/switches/switches.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,10 +71,6 @@ You can change the placement of the label:
71
71
72
72
## Accessibility
73
73
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' }}>`
78
74
- 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/)).
79
75
- When a label can't be used, it's necessary to add an attribute directly to the input component.
80
76
In this case, you can apply the additional attribute (for example `aria-label`, `aria-labelledby`, `title`) via the `inputProps` prop.
0 commit comments