Add accessible names to remaining top-bar controls (#4992)

ThemeButton, FontScalingButton, SearchBar, and SearchBarClearButton had
no AutomationProperties.Name, so screen readers (Narrator, NVDA)
announce them as raw glyph text ("N/A", Unicode E8D3), an unnamed edit
field, and a button called "X". Completes the top-bar naming pass
started for SettingsButton and the window controls.
This commit is contained in:
Malin Fossum
2026-08-19 13:59:45 -05:00
committed by GitHub
parent 87a0eb8637
commit b21d416161
+5 -1
View File
@@ -1120,7 +1120,8 @@
Name="SearchBar"
Foreground="{DynamicResource MainForegroundColor}" Background="{DynamicResource MainBackgroundColor}"
Padding="3,3,30,0"
ToolTip="Press Ctrl-F and type app name to filter application list below. Press Esc to reset the filter">
ToolTip="Press Ctrl-F and type app name to filter application list below. Press Esc to reset the filter"
AutomationProperties.Name="Search">
</TextBox>
<TextBlock
Name="SearchBarIcon"
@@ -1136,6 +1137,7 @@
VerticalAlignment="Center" HorizontalAlignment="Right"
Name="SearchBarClearButton"
Style="{StaticResource SearchBarClearButtonStyle}"
AutomationProperties.Name="Clear Search"
Margin="0,0,20,0" Visibility="Collapsed">
</Button>
@@ -1153,6 +1155,7 @@
FontFamily="Segoe MDL2 Assets"
Content="N/A"
ToolTip="Change the WinUtil UI Theme"
AutomationProperties.Name="Theme"
/>
<Popup Name="ThemePopup"
IsOpen="False"
@@ -1191,6 +1194,7 @@
FontFamily="Segoe MDL2 Assets"
Content="&#xE8D3;"
ToolTip="Adjust Font Scaling for Accessibility"
AutomationProperties.Name="Font Scaling"
/>
<Popup Name="FontScalingPopup"
IsOpen="False"