Skip to content

Conversation

@ricardobossan
Copy link
Member

@ricardobossan ricardobossan commented Oct 23, 2023

Fixes #9916

Proposed changes

  • Applies the suggested workaround to make contrast ratio of the focus indicator for the DataGridView selected cell to comply with accessibility standards.
  • Updates the DefaultDefaultCellStyle property of the System.Windows.Forms.DataGridView class, to use a color for SelectionBackColor that allows better contrast ratio between the background and focus indicator of the selected cell.

Customer Impact

  • Provides better contrast ratio between colors in the DataGridView selected cell's background and focus indicator.

Regression?

  • No

Risk

  • Minimal

Screenshots

Before

Contrast between background and focus indicator:

Screenshot 2023-10-23 151148

Contrast between background and text:

Screenshot 2023-10-23 151229

After

Contrast between background and focus indicator:

Screenshot 2023-10-23 125351

Contrast between background and text:

Screenshot 2023-10-23 125601

Test methodology

  • Manual (Accessibility Insights for Windows)

Accessibility testing

Test environment(s)

  • 9.0.100-alpha.1.23511.2
Microsoft Reviewers: Open in CodeFlow

…o enhace contrast for accessibility reasons
@ricardobossan ricardobossan requested a review from a team as a code owner October 23, 2023 18:29
@ghost ghost assigned ricardobossan Oct 23, 2023
@Tanya-Solyanik Tanya-Solyanik added the waiting-author-feedback The team requires more information from the author label Oct 24, 2023
@LeafShi1 LeafShi1 self-requested a review October 25, 2023 09:52
Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) added 3 commits October 26, 2023 21:29
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Oct 27, 2023
@Tanya-Solyanik
Copy link
Contributor

Tanya-Solyanik commented Oct 28, 2023

@ricardobossan - something went wrong with git merges, this PR does not show any changed files. Hope you hadn't lost yout changes locally!

@Tanya-Solyanik Tanya-Solyanik added the waiting-author-feedback The team requires more information from the author label Oct 28, 2023
Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) added 3 commits October 30, 2023 05:31
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Oct 31, 2023
Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) added 2 commits November 3, 2023 17:53
@ricardobossan ricardobossan reopened this Nov 7, 2023
@ricardobossan ricardobossan merged commit 19dfe0d into dotnet:main Nov 7, 2023
@ghost ghost added this to the 9.0 Preview1 milestone Nov 7, 2023
Copy link
Contributor

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@LeafShi1
Copy link
Member

/backport to release/8.0

@github-actions github-actions bot unlocked this conversation Oct 30, 2025
@github-actions
Copy link
Contributor

Started backporting to release/8.0 (link to workflow run)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The luminosity ratio of the focus indicator on the cells is less than 3:1 ratio under DataGridView

3 participants