dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.29k stars 956 forks source link

Color contrast ratio of "groupBox5" text is 4.087:1 which is less than 4.5:1: A11y_.NET CoreWinforms_Winforms_Containers _ColorContrast #11445

Closed PoojaNamde closed 1 month ago

PoojaNamde commented 1 month ago

.NET version

dotnet-sdk-9.0.100-preview.5.24258.1

Did it work in .NET Framework?

Yes

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No response

Issue description

GitHub Tags:

A11yMAS; #A11yTCS; #A11ySev2; #BM_.NET Core[Winforms]_Win32_May2024; #.NETCore; #WCAG1.4.3; #DesktopApp; #Win11; #FTP; #ColorContrast;

Environment Details:

App name: .NET Core Winforms Window Version: Win 11 OS Build: 22621.3085

Repro Steps:

  1. Launch the "Accessibility core app".
  2. Main Form screen would appear.
  3. TAB to "Containers_Controls_2:Testing the controls under the containers Tab" and hit ENTER key.
  4. Winforms_Containers screen would appear.
  5. Check the color contrast ratio of "groupBox5" text present under 'Empty_Groupbox_Setbackcolor_Green'.

Actual Result:

Color contrast ratio of "groupBox5" text is 4.087:1 which is less than 4.5:1.

Expected Result:

Color contrast ratio of "groupBox5" text should be greater than or equal to 4.5:1.

User Impact:

Low vision users will not be able to see the text clearly and will not get information about it.

Attachment

11445_A11y_ NET CoreWinforms_Winforms_Containers _ColorContrast

merriemcgaw commented 1 month ago

This can be fixed by changing the colors in the sample app.

Olina-Zhang commented 1 month ago

@PoojaNamde The test app and SDK have been updated, please download the updated app and .NET 9.0 SDK to test. It should be as following: image

merriemcgaw commented 1 month ago

Thanks @Olina-Zhang ! @PoojaNamde can you verify and close this issue?

PoojaNamde commented 1 month ago

Closed; #Regressed:06-05-24;

Verified the bug in latest environment Bug is fixed and does not repro. Hence closing the bug. Please find the closing attachment

image