Skip to content

Commit d70794a

Browse files
Add UIA element grouping to SettingsContainer (#15756)
Adds an `AutomationProperty.Name` to the main grid in the `SettingContainer`. Doing so makes it so that the group of elements is considered a "group \<header\>". Now, when navigating with a screen reader, when you enter the group of elements, the "group \<header\>" will be presented. Thus, if the user navigates to the "reset" button, it'll be prefaced with a "group \<header\>" announcement first. If the user navigates to it from the other direction (the setting control), this announcement isn't made, but the user already has an understanding of what group of settings they're in, which is standard practice. Closes #15158
1 parent 1a40ff3 commit d70794a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cascadia/TerminalSettingsEditor/SettingContainerStyle.xaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@
106106
<Setter Property="Template">
107107
<Setter.Value>
108108
<ControlTemplate TargetType="local:SettingContainer">
109-
<Grid Style="{StaticResource NonExpanderGrid}">
109+
<Grid AutomationProperties.Name="{TemplateBinding Header}"
110+
Style="{StaticResource NonExpanderGrid}">
110111
<Grid.ColumnDefinitions>
111112
<ColumnDefinition Width="*" />
112113
<ColumnDefinition Width="Auto" />

0 commit comments

Comments
 (0)