question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:

  1. This issue can’t reproduce on Windows 10 OS.
  2. 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: image

Expected behavior: The color contrast should be greater than 3:1 between background color of checkbox and background color of whole cell. For Win10: image

Minimal repro:

  1. Create a .NET Core Winforms application with DataGridView control added.
  2. Add a DataGridViewTextBoxColumn to it.
  3. Build and run the project.
  4. 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:closed
  • Created 2 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
Tanya-Solyanikcommented, Feb 24, 2023

@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,

1reaction
NikitaSemenovAkveloncommented, Aug 4, 2022

With any of the contrast themes, checkboxes have contrast colors. So, if a user uses a contrast theme, he won’t have any trouble. image image image image image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found