Open paperbackdragon opened 1 year ago
@AgneLukoseviciute Can you look into this? Is this a problem with the Switch XAML control, or in our styling of it? Are we preventing the correct styling from happening in high contrast mode?
I have same issue with background color when disabled and value is false. if disabled is true, background color is being overwritten somewhere.
Problem Description
In any of the Win 11 high contrast themes, the Switch component has incorrect colors when disabled and in the "on" position. Most importantly, in many of the high contrast themes, the Switch background and the thumb color are very close in color and aren't contrasting enough.
It seems to me like at the least, the background of the Switch should be the same as the window color.
Disabled, Aquatic high contrast theme (The "off" example is fine, the "on" is not and should mirror the same colors as "off"):
This is a screenshot of the Windows settings app which I think handles the colors more accurately for disabled Switch components:
Steps To Reproduce
disabled={true}
value={true}
Expected Results
Component's colors should be more contrasting.
CLI version
7.0.4
Environment
Target Platform Version
No response
Target Device(s)
Desktop
Visual Studio Version
Visual Studio 2019
Build Configuration
Release
Snack, code example, screenshot, or link to a repository
No response