From c04400e7dff18c5f06785c359cf7676e1b650b7a Mon Sep 17 00:00:00 2001 From: Niels Laute Date: Thu, 17 Apr 2025 15:51:40 +0200 Subject: [PATCH] [CmdPal] A11y improvements (#38840) This PR introduces the following changes: - Adding the right a11y labels - as a result, Accesibility Insights is no longer flagging any errors: https://github.com/microsoft/PowerToys/issues/38395 - Removing and tweaking a few animations, addressing: https://github.com/microsoft/PowerToys/issues/38438 - Localization improvements --- .../Controls/CommandBar.xaml | 39 ++--------- .../Microsoft.CmdPal.UI/Controls/Tag.xaml | 2 + .../ExtViews/ListPage.xaml | 24 +++---- .../Microsoft.CmdPal.UI/Pages/ShellPage.xaml | 64 ++++++++++++------- .../Strings/en-us/Resources.resw | 12 +++- 5 files changed, 69 insertions(+), 72 deletions(-) diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI/Controls/CommandBar.xaml b/src/modules/cmdpal/Microsoft.CmdPal.UI/Controls/CommandBar.xaml index 4a692fcc20..38ea017125 100644 --- a/src/modules/cmdpal/Microsoft.CmdPal.UI/Controls/CommandBar.xaml +++ b/src/modules/cmdpal/Microsoft.CmdPal.UI/Controls/CommandBar.xaml @@ -36,7 +36,7 @@ - + @@ -63,27 +63,6 @@ Text="{x:Bind RequestedShortcut, Mode=OneWay, Converter={StaticResource KeyChordToStringConverter}}" /> - - - - - - - - - @@ -135,9 +114,6 @@ + Duration="0:0:0.333" /> + Duration="0:0:0.333" /> + Duration="0:0:0.187" /> + Duration="0:0:0.333" /> + Duration="0:0:0.333" /> + Duration="0:0:0.187" /> @@ -272,13 +289,13 @@ + Duration="0:0:0.333" /> + Duration="0:0:0.333" /> @@ -313,21 +330,21 @@ + Duration="0:0:0.187" /> + Duration="0:0:0.187" /> + Duration="0:0:0.187" /> + Duration="0:0:0.187" /> @@ -343,6 +360,7 @@ MinHeight="64" MaxHeight="96" HorizontalAlignment="Center" + AutomationProperties.AccessibilityView="Raw" SourceKey="{x:Bind ViewModel.Details.HeroImage, Mode=OneWay}" SourceRequested="{x:Bind help:IconCacheProvider.SourceRequested}" Visibility="{x:Bind HasHeroImage, Mode=OneWay}" /> diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI/Strings/en-us/Resources.resw b/src/modules/cmdpal/Microsoft.CmdPal.UI/Strings/en-us/Resources.resw index 642b3dcc11..9ffc14002b 100644 --- a/src/modules/cmdpal/Microsoft.CmdPal.UI/Strings/en-us/Resources.resw +++ b/src/modules/cmdpal/Microsoft.CmdPal.UI/Strings/en-us/Resources.resw @@ -379,9 +379,6 @@ Right-click to remove the key combination, thereby deactivating the shortcut. Extensions - - More commands - Open Command Palette settings @@ -397,4 +394,13 @@ Right-click to remove the key combination, thereby deactivating the shortcut. Choose if Command Palette is visible in the system tray + + Back + + + Back + + + More + \ No newline at end of file