Open Diegorro98 opened 8 months ago
Apologies for the delayed response. @Diegorro98 Could you try the latest release to see if that resolves the issue, we fixed some a11y thinks in: https://github.com/CommunityToolkit/Windows/pull/284?
@niels9001 I found this issue with the latest release, all NuGets on my project are up to date.
Looking at your XAML, I think the expected thing is happening when having a single UI control as the content of the SettingsCard
.
When wrapping things in a Grid
things break, but I'm guessing that is to be expected as it's custom content living there in a panel. I guess you'd need to set the AutomationProperties.Name
on the `Grid itself. Would love to hear your thoughts though!
@niels9001 Setting the AutomationProperties.Name
to the Grid
doesn't work because Narrator says the names in the incorrect order. Check this representation:
Without grid:
With Grid
:
With Grid
and AutomationProperties.Name
:
Also, maybe it is kind of hidden between all the Grid issues, but buttons inside SettingsCard
s have a huge issue, I'm going to highlight it here so it can be seen easily:
<controls:SettingsCard Description="When the Button is selected, the narrator will read 'Content button', 'Accessibility Test group' and 'Button SettingsCard' are missing"
Header="Button SettingsCard"
HeaderIcon="{ui:FontIcon Glyph=}">
<Button Content="Content"/>
</controls:SettingsCard>
Describe the bug
When using the narrator on an app with SettingCards no clickable and with a controls in the content, the narrator behaves differently depending on the control used and if it is inside a Grid or a StackPanel (maybe there are other layouts also, but haven't tested)
Here it is an example of the different behaviors:
Steps to reproduce
Expected behavior
All the narrator outputs should be equal to the ToggleSwitch/ComoBox SettingsCard narrator output
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
Windows 11 23H2 (Build 22635.3140) (Insider build)
App minimum and target SDK version
Other SDK version
Windows 11, version 23H2 (Build 22621)
Visual Studio Version
2022
Visual Studio Build Number
17.9.0
Device form factor
Desktop
Additional context
No response
Help us help you
I would like to help, but I don't have too much experience with accessibility