Color contrast ratio of focus indicator over 'toolStripSplitButton1' is 1.247:1 which is less than 3:1: A11y_.NET CoreWinforms_StripControls_Toolstripwithmenuitem_NonTextContrast
.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.11; #DesktopApp; #Win11; #FTP; #NonTextContrast;
Environment Details:
App name: .NET Core Winforms Window Version: Win 11 OS Build: 22621.3085
Repro Steps:
- Launch the "Accessibility core app".
- Main Form screen would appear.
- TAB to "MenuToolbars_Controls:Testing the controls under Menu Toolbars Tab" and hit ENTER key.
- TAB to StripControls button and hit ENTER key.
- TAB to 'toolStripSplitButton1' present at below section of the screen.
- Observe the issue.
Actual Result:
Color contrast ratio of focus indicator over 'toolStripSplitButton1' is 1.247:1 which is less than 3:1.
Similar issue is also observed in below scenario: Issue 1: ToolStripContainer
- Launch the "Accessibility core app".
- Main Form screen would appear.
- TAB to "MenuToolbars_Controls:Testing the controls under Menu Toolbars Tab" and hit ENTER key.
- TAB to ToolStripContainer button and hit ENTER key.
- TAB to 'toolStripSplitButton2' present at below section of the screen.
- Observe that color contrast ratio over "toolStripSplitButton2" is failing.
Issue2: PrintingTesting_PrintPreview:
- Launch the "Accessibility core app".
- Main Form screen would appear.
- TAB to "Printing_Controls:Testing the controls under Printing Tab" and hit ENTER key.
- TAB to Preview button and hit ENTER key.
- Print Preview Screen would appear.
- Navigate to "Zoom" button using TAB key and observe that color contrast ratio over "Zoom" is failing.
Expected Result:
Color contrast ratio of focus indicator over 'toolStripSplitButton1' should be greater than or equal to 3:1
User Impact:
Low vision users will not be able to identify where the focus is and will not be able to interact with the control.
Attachment
GithubTags:#Rev:yaja;
@LeafShi1 can you change the border of all selected ToolStripItems to a solid dark line? Make sure the contrast works in the high contrast themes as well.
@Olina-Zhang Can your team help test whether other controls have the same problem?
@Olina-Zhang Can your team help test whether other controls have the same problem?
Other controls haven't this problem.
@Epica3055 @Tanya-Solyanik is this on track for RC1?
@Epica3055 Could you please upload latest App zip file to verify this issue.
Verified this issue in the latest .NET 9.0.100-rc.1.24381.10, it was fixed: the color contrast ratio of focus indicator over 'toolStripSplitButton1' is greater than 3:1.
In addition, the default value of the RenderMode property of StatusStrip is now changed, 9.0 is changed to ManagerRenderMode by default, 8.0 is System.
@MandiMan Similar issues provided in repro steps are still reproducing. Please resolve these issues and reactivate this bug.
@Epica3055 @PoojaNamde verified this issue on the main branch of the Winforms repo that Issue1(ToolStripContainer) of similar issues has been fixed, the color contrast ratio of focus indicator on 'toolStripSplitButton2' is greater than 3:1.
Issue2(PrintingTesting_PrintPreview) of similar issues still repro, the color contrast ratio of focus indicator on 'Zoom' is less than 3:1.
Verified the issue with .NET 9.0.100-rc.1.24422.10 test pass build that the issue has been fixed, which have the same results as mandi.
@MelonWang1 could you please share .NET 9.0.100-rc.1.24422.10 test pass build details to verify this issue.
@PoojaNamde upload in here.
@MelonWang1 Verified both the issue in latest environment but issue is still reproducing.
@PoojaNamde Please verify again using new upload file.
@MelonWang1
Verified this issue in latest build, issue is fixed for issue 1 but still reproducing for Issue 2. Please find the screenshot for reference.
@Epica3055 Reopened since issue 2 was not fixed.
@Epica3055 Could you please upload the latest build so that I can reverify the issue in latest build.
@Epica3055 Could you please upload the latest build so that I can reverify the issue in latest build.
I uploaded the private dll to DotNet - WinForms - All Documents (sharepoint.com), please use PrivateBuildForTest to test
Verified this issue on latest WinForms repository from the main branch, and it has been resolved. The Issue2(PrintingTesting_PrintPreview) is no longer reproducible. As shown below, the color contrast ratio of the focus indicator on the 'Zoom' button exceeds the recommended 3:1 ratio.
#Closed; #Regressed:09-20-24;
Verified the bug in environment Bug is fixed and does not repro. Hence closing the bug. Please find the closing attachment
breaking change issue - https://github.com/dotnet/docs/issues/43957