winforms icon indicating copy to clipboard operation
winforms copied to clipboard

Luminosity ratio of the focus indicator for the table rows with background is less than required ratio 3:1: A11y_WinForm.NETRuntime_Non-TextContrast

Open kupatkar99 opened this issue 2 months ago • 7 comments

"Please do not close this bug. This bug should only be closed by TCS, C+AI Accessibility or the Divisional Driver."

GitHub Tags:

#A11ySev2; #A11yTCS; #WCAG2.1.1; #Win32; #DesktopApp; #Win11; #WinForms .NET Runtime; #BM_WinForms.NETRuntime_Win32_June2025; #Keyboard; #A11yMAS;

Environment Details:

Microsoft Windows 11 Enterprise (24H2) Build on 26100.4061  

Repro Steps:

  1. Open SQL Server Migration Assistant for oracle. 
  2. Splash screen appears and SSMA is launched
  3. Navigate to the 'Tools' menu and select it.
  4. Navigate to 'Project settings menu item and select it.
  5. Navigate to "Type Mapping" button select it.
  6. Navigate all controls under "Type Mapping" button.
  7. Verify whether luminosity ratio for the focus indicator with background is less than required ratio or not.

Actual Result:

Luminosity ratio of the focus indicator for the table rows with background is less than required ratio 3:1.

Expected Result:

Luminosity ratio of the focus indicator for the table rows with background should satisfy the required ratio 3:1.

User Impact:

Low vision users will be impacted. Luminosity contrast ratio for focus indicator is less than minimum required ratio i.e. 3:1. Due to this issue user will be unable to track the keyboard focus easily.

Sample App used:-

[[[RadioButtonFocusDemo.zip](https://microsoftapc-my.sharepoint.com/:u:/g/personal/v-kkumar2_microsoft_com/ETnjjCF0jsZFiF_P9fDDmyIBlb80rXpmeIDu2or6768kVg?e=M4uY2O)](https://microsoftapc-my.sharepoint.com/:u:/g/personal/v-kkumar2_microsoft_com/ETnjjCF0jsZFiF_P9fDDmyIBlb80rXpmeIDu2or6768kVg?e=cCZLff)](https://microsoftapc-my.sharepoint.com/:u:/g/personal/v-kkumar2_microsoft_com/ETnjjCF0jsZFiF_P9fDDmyIBlb80rXpmeIDu2or6768kVg?e=wBZc6R)

Attachment:

Image

kupatkar99 avatar Oct 27 '25 12:10 kupatkar99

It looks like the sample project is a .NET 9 project, @Olina-Zhang can you verify the behavior in .NET 10? @LeafShi1 we can take a fix for 10 but we wouldn't change earlier releases for this.

merriemcgaw avatar Oct 27 '25 17:10 merriemcgaw

The sample project is a .NET8.0 project

Image

This problem does not recur in the .net10.0 project

Image

LeafShi1 avatar Oct 28 '25 01:10 LeafShi1

@merriemcgaw It cannot repro in .NET 10 & 9, was fixed by GH PR: https://github.com/dotnet/winforms/pull/10176.

Olina-Zhang avatar Oct 28 '25 08:10 Olina-Zhang

@kupatkar99 - this is fixed in the current versions, and this issue can be closed.

merriemcgaw avatar Oct 28 '25 17:10 merriemcgaw

@LeafShi1, they are migrating to .NET 8 and this is a grade blocking issue. Let's go ahead and service this for the next .NET 8 update. Please let me and @KlausLoeffelmann know if there was a substantial change between the two versions and we will evaluate risk.

merriemcgaw avatar Oct 29 '25 20:10 merriemcgaw

@LeafShi1, they are migrating to .NET 8 and this is a grade blocking issue. Let's go ahead and service this for the next .NET 8 update. Please let me and @KlausLoeffelmann know if there was a substantial change between the two versions and we will evaluate risk.

There are no major differences between the two versions. Please review the backport PR https://github.com/dotnet/winforms/pull/14001

LeafShi1 avatar Oct 31 '25 00:10 LeafShi1

Verified the issue with .NET SDK 8.0.23 Test Pass build, the issue has been fixed as below screenshot.

Image

Zheng-Li01 avatar Dec 12 '25 07:12 Zheng-Li01