[Accessibility][Win11] The color contrast of the dataGridViewCheckBox cell is less than 3:1
See original GitHub issue.NET Core Version:
- .NET SDK 7.0.100-preview.2.22108.9
Have you experienced this same bug with .NET Framework?:
- Yes
More Info:
- This issue can’t reproduce on Windows 10 OS.
- This issue can reproduce on Windows 11 OS both for Winforms NetFX and Core projects(can reproduce with 3.1, 5.0, 6.0, 7.0).
Problem description: The color contrast less than 3:1 between background color of checkbox and background color of whole cell. For Win11:
Expected behavior: The color contrast should be greater than 3:1 between background color of checkbox and background color of whole cell. For Win10:
Minimal repro:
- Create a .NET Core Winforms application with DataGridView control added.
- Add a DataGridViewTextBoxColumn to it.
- Build and run the project.
- Check the checkbox, then launch Accessibility Insights for windows tool and observe the color contrast. Or download the attached project, then execute above step 4. CheckBoxCellColorContrast.zip
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
c# - How to set color for checkbox present in datagridview?
In this, have one Checkbox column, two textbox column. My requirement is need to set readonly true and set grey color for the...
Read more >free scout and replace - Kamikatzerl C.A.T.S Game Fanpage
To decide whether you should attack in a building our gang already owns or move on, you need to know about buffers. Buffering...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dmitrii-drobotov - a reliable and future-proof fix for this issue required UXTHeme team opening up some APIs for us. Putting this bug on hold until that happens,
With any of the contrast themes, checkboxes have contrast colors. So, if a user uses a contrast theme, he won’t have any trouble.