[switch] Fix incorrect role with slotProps.input#48469
Conversation
4676901 to
471251f
Compare
Deploy previewhttps://deploy-preview-48469--material-ui.netlify.app/ Bundle size
Check out the code infra dashboard for more information about this PR. |
|
Am I missing anything? I can't see role="checkbox" in the docs: https://mui.com/material-ui/react-switch/ demos |
|
ZeeshanTamboli
left a comment
There was a problem hiding this comment.
I am confused. I had added role="switch" in #46482. Did anything change after that?
Seems it's a regression from #48059 – |
How do the other tests with |
|
@ZeeshanTamboli I think @mj12albert is fixing the case when |
|
Yep, many demos are spreading it like this: Which isn't visible in the preview snippet so it's easy to miss that those are actually passing |
|
Cherry-pick PRs will be created targeting branches: v7.x |

Can be observed in the docs - they all incorrectly expose
role="checkbox"