mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Fix Accessibility issues in the PowerRename settings page (#6101)
* add automation property to number box * Set the automation property for the image
This commit is contained in:
@@ -636,6 +636,9 @@
|
||||
<data name="About_PowerRename.Text" xml:space="preserve">
|
||||
<value>About Power Rename</value>
|
||||
</data>
|
||||
<data name="PowerRename_Image.AutomationProperties.Name" xml:space="preserve">
|
||||
<value>Power Rename</value>
|
||||
</data>
|
||||
<data name="About_ShortcutGuide.Text" xml:space="preserve">
|
||||
<value>About Shortcut Guide</value>
|
||||
</data>
|
||||
|
||||
@@ -75,7 +75,8 @@
|
||||
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
||||
/>
|
||||
|
||||
<TextBlock x:Uid="PowerRename_Toggle_MaxDispListNum"
|
||||
<TextBlock Name="PowerRename_Toggle_MaxDispListNum"
|
||||
x:Uid="PowerRename_Toggle_MaxDispListNum"
|
||||
Margin="{StaticResource SmallTopMargin}"
|
||||
Foreground="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToForegroundConverter}}"/>
|
||||
|
||||
@@ -86,7 +87,8 @@
|
||||
Minimum="0"
|
||||
Width="240"
|
||||
Maximum="20"
|
||||
IsEnabled="{ x:Bind Mode=OneWay, Path=ViewModel.GlobalAndMruEnabled}"/>
|
||||
IsEnabled="{ x:Bind Mode=OneWay, Path=ViewModel.GlobalAndMruEnabled}"
|
||||
AutomationProperties.LabeledBy="{Binding ElementName=PowerRename_Toggle_MaxDispListNum}"/>
|
||||
|
||||
<CheckBox x:Uid="PowerRename_Toggle_RestoreFlagsOnLaunch"
|
||||
Margin="0, 17, 0, 0"
|
||||
@@ -115,7 +117,7 @@
|
||||
HorizontalAlignment="Left"
|
||||
Margin="{StaticResource SmallTopBottomMargin}"
|
||||
RelativePanel.Below="DescriptionPanel">
|
||||
<Image Source="ms-appx:///Assets/Modules/PowerRename.png" />
|
||||
<Image x:Uid="PowerRename_Image" Source="ms-appx:///Assets/Modules/PowerRename.png" />
|
||||
</Border>
|
||||
|
||||
<StackPanel x:Name="LinksPanel"
|
||||
|
||||
Reference in New Issue
Block a user