mantine icon indicating copy to clipboard operation
mantine copied to clipboard

Mantine Switch should follow accessibility best practices

Open ocshawn opened this issue 1 year ago • 3 comments

Current Switch component fails accessibility checks for using an empty label to land user clicks on a checkbox. If user also uses the label prop a second label is created with the same for target which is also not allowed.

Consider reworking the component to behave more like the W3C APG example

ocshawn avatar Feb 01 '24 22:02 ocshawn

@ocshawn good points, I'll attempt to put together a suitable solution for this.

rilrom avatar Feb 05 '24 13:02 rilrom

@rilrom im also working on a fix (but im new to the community) so we will see how it goes

ocshawn avatar Feb 05 '24 15:02 ocshawn

@rilrom is it ok if i create a PR for v6 using your fix as a basis as we have not upgraded from v6 yet?

ocshawn avatar Feb 12 '24 17:02 ocshawn