From f6b5840e0eaca73d1f78c4ce6f105b50232683e2 Mon Sep 17 00:00:00 2001 From: Alekhya Date: Fri, 21 Aug 2020 12:21:23 -0700 Subject: [PATCH] Fix Accessibility issues of the FancyZones Settings page (#6045) * Added automation property for the button * Added an automation property name for the glyph * added name automation property for the shortcut window * fixed the name null for zone highlight button * fixed the name for the inactive color dropdown * fixed the accessibility issue with the border color downdown button * fixed the issue with dropdowb buttons * add description to the image * Capitalize Z otherwise it reads it in an expected way * made the naming generic as it the custom window is not only specific to fancyzones but is also used by colorpicker and PTRun to set their shortcut --- .../Controls/HotkeySettingsControl.xaml | 8 ++++-- .../Strings/en-us/Resources.resw | 9 ++++++ .../Views/FancyZonesPage.xaml | 28 ++++++++++++------- 3 files changed, 32 insertions(+), 13 deletions(-) diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Controls/HotkeySettingsControl.xaml b/src/core/Microsoft.PowerToys.Settings.UI/Controls/HotkeySettingsControl.xaml index aff5abfe53..7611e743e8 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI/Controls/HotkeySettingsControl.xaml +++ b/src/core/Microsoft.PowerToys.Settings.UI/Controls/HotkeySettingsControl.xaml @@ -23,15 +23,17 @@ Text="{x:Bind Header, Mode=OneTime}" Foreground="{Binding Path=IsEnabled, ElementName=HotkeyTextBox, Converter={StaticResource ModuleEnabledToForegroundConverter}}" /> - - - diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw b/src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw index 3259fdb9e5..e6e32bb59c 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw +++ b/src/core/Microsoft.PowerToys.Settings.UI/Strings/en-us/Resources.resw @@ -288,6 +288,9 @@ Appearance + + FancyZones windows + Create window layouts to help make multi-tasking easy. @@ -309,6 +312,12 @@ Open zones editor + + Set Shortcut + + + Information Symbol + Launch zones editor diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml b/src/core/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml index 1ecdb29057..e4d4cf7c09 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml +++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/FancyZonesPage.xaml @@ -59,12 +59,14 @@ @@ -180,13 +182,15 @@ - + Padding="4,4,8,4" + AutomationProperties.LabeledBy="{Binding ElementName=FancyZones_ZoneHighlightColor}"> @@ -196,7 +200,7 @@ - - + Padding="4,4,8,4" + AutomationProperties.LabeledBy="{Binding ElementName=FancyZones_InActiveColor}"> @@ -240,13 +246,15 @@ - + Padding="4,4,8,4" + AutomationProperties.LabeledBy="{Binding ElementName=FancyZones_BorderColor}"> @@ -254,7 +262,7 @@ - - +