-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch component is not visible in high contrast mode #43479
Comments
I haven't seen a lot of high-contrast issue reports through the years, I'm actually surprised. Recently, I had a fun time reading https://polypane.app/blog/forced-colors-explained-a-practical-guide/. |
Mark this to consider in v7. This is a use case where a default transparent border is helpful. |
Interesting data from the link above https://polypane.app/blog/forced-colors-explained-a-practical-guide/:
but it can also be a lot of work: https://youtu.be/XYjH_oQ3llg?si=Zcsnb4LBMY7dDjEG&t=792. So to balance the priorities, I could see this fixed by the community. |
Assuming you're okay with the simple fix of adding a border on the track and knob, that's something I could potentially do- |
@dominoweir here's our contributing guide: https://github.com/mui/material-ui/blob/master/CONTRIBUTING.md If you open a PR, please add myself and @zanivan as reviewers 😊 |
Steps to reproduce
Link to live example: (required)
Every single switch on https://mui.com/material-ui/react-switch/
Steps:
Emulate CSS media feature forced-colors
. Set it toforced-colors: active
Current behavior
Switches are not visible, although the pointer cursor does show when you hover on them
Expected behavior
Switches should be visible when forced colors mode is turned on
Context
Trying to fix some accessibility issues in high contrast mode and although I might be able to override the styles on my own, it would be better for this to work out of the box.
Your environment
Please note that although I'm using v5 right now, this issue is reproducible on mui.com using the latest version option available.
npx @mui/envinfo
Search keywords: forced-color, forced color
The text was updated successfully, but these errors were encountered: