Hi. I wonder how can I set the aria-label for a checkbox. When I set the aria-label for Checkbox tag. It sets the aria-label for the wrapper div. Thank you!
I wonder how can I set the aria-label for a checkbox?
@quyenlt1812 Like this:
<Checkbox
inputProps={{
"aria-label": "Description"
}}
/>
https://codesandbox.io/s/p56zokqxxq
I'm wondering. Should we ease the usage of this attribute by providing a dedicated property to the Checkbox, Radio, Switch, Input, etc.?
A dedicated property would be nice. But this works too and leads people to know how to pass props to children.
I think that we can add a note on accessibility in the selection controls documentation page featuring the previous code sample: https://www.w3.org/WAI/tutorials/forms/labels/.
@oliviertassinari Has this issue been taken yet?
@wyseguyonline - all yours
Most helpful comment
@wyseguyonline - all yours