DataGridView's scrollbars shouldn't include their control type in their accessible names #2965
Labels
a11y-MAS
High Priority - Accessibility violation of Microsoft Accessibility Standards
tenet-accessibility
MAS violation, UIA issue; problems with accessibility standards
Steps to reproduce:
Result: The accessible name of the scrollbar is "Horizontal Scroll Bar", and so given that this includes the same (case insensitive) text as its localized control type of "scroll bar", Accessibility Insights reports this as an error.
Expected: A control shouldn't include its control type in its accessible name, and so the accessible name should be "Horizontal". (It's a similar case for the vertical scroll bar too.)
from @guybark: I spent a while trying to figure out how the accessible name is ending up as "Horizontal Scroll Bar". In https://referencesource.microsoft.com/#System.Windows.Forms/winforms/Managed/System/WinForms/DataGridView.cs, it sets this.horizScrollBar.AccessibleName to SR.GetString(SR.DataGridView_AccHorizontalScrollBarAccName), and in the code I found, that's "Horizontal" as it should be. But it seems that by the time a UIA client gets supplied the name, its "Horizontal Scroll Bar".
ported from AzDo 1071939
The text was updated successfully, but these errors were encountered: