Closed Stenbaek closed 3 years ago
I just realized that {...rest} is being passed on to the input. I know that you can add it yourself then, but imo it should be handled out of the box.
The ARIA specification states that the aria-checked attribute needs to be specified if using the switch role.
@markusenglund It looks like you stopped maintaining this package... 😢 Do you have any plan to commit these pull requests?
I'm sorry for responding to this very late.
I've merged monicahung's PR. It will be deployed in a new release soon.
The input has role="switch", but has no corresponding aria-checked.
This is flagged for a site doing a Lighthouse accessibility audit.