From 016659d5db758bbbf4a15123595e5942aec98e78 Mon Sep 17 00:00:00 2001
From: John Alkire <4615491+jalkire@users.noreply.github.com>
Date: Mon, 27 Sep 2021 15:13:57 -0700
Subject: [PATCH] fix: Update Automated Checks GroupItem HelpText to reflect
IsExpanded state (#1203)
#### Details
Currently, the HelpText for the GroupItems in the Automated Checks ListView is always "Press right arrow key to expand, enter or space to toggle children highlighting", regardless of expanded/collapsed state. With this PR, it will now be "Press left arrow key to collapse, enter or space to toggle children highlighting" when the items are expanded.
Example of NVDA reading these items now:
- Collapsed:
> 2 errors - A button must not support both the Invoke and Toggle patterns., all children highlighted grouping collapsed Press right arrow key to expand, enter or space to toggle children highlighting 1 of 6
- Expanded:
> 2 errors - A button must not support both the Invoke and Toggle patterns., some children highlighted grouping expanded Press left arrow key to collapse, enter or space to toggle children highlighting 1 of 6
##### Motivation
Addresses ADO 1750592
##### Context
- It took a few tries to find the right place to put the `Trigger`
#### Pull request checklist
- [n/a] Run through of all [test scenarios](https://github.com/Microsoft/accessibility-insights-windows/blob/main/docs/Scenarios.md) completed?
- [x] Does this address an existing issue? If yes, Issue# - 1750592
- [n/a] Includes UI changes?
- [x] Run the production version of Accessibility Insights for Windows against a version with changes.
- [n/a] Attach any screenshots / GIF's that are applicable.
> Note: After the PR has been created, certain checks will be kicked off. All of these checks must pass before a merge.
---
.../Controls/TestTabs/AutomatedChecksControl.xaml | 13 ++++++++++---
.../Properties/Resources.Designer.cs | 13 +++++++++++--
.../Properties/Resources.resx | 5 ++++-
3 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/src/AccessibilityInsights.SharedUx/Controls/TestTabs/AutomatedChecksControl.xaml b/src/AccessibilityInsights.SharedUx/Controls/TestTabs/AutomatedChecksControl.xaml
index fc34e1729..688c83ece 100644
--- a/src/AccessibilityInsights.SharedUx/Controls/TestTabs/AutomatedChecksControl.xaml
+++ b/src/AccessibilityInsights.SharedUx/Controls/TestTabs/AutomatedChecksControl.xaml
@@ -275,12 +275,11 @@
-
-
+
-
@@ -293,6 +292,14 @@
+
+
+
+
+
+
+
+
diff --git a/src/AccessibilityInsights.SharedUx/Properties/Resources.Designer.cs b/src/AccessibilityInsights.SharedUx/Properties/Resources.Designer.cs
index 4bab3c645..d48fd2f44 100644
--- a/src/AccessibilityInsights.SharedUx/Properties/Resources.Designer.cs
+++ b/src/AccessibilityInsights.SharedUx/Properties/Resources.Designer.cs
@@ -2550,9 +2550,18 @@ public static string lvResultsListViewAutomationPropertiesName {
///
/// Looks up a localized string similar to Press right arrow key to expand, enter or space to toggle children highlighting.
///
- public static string lvResultsListViewHelpText {
+ public static string lvResultsListViewHelpTextCollapsed {
get {
- return ResourceManager.GetString("lvResultsListViewHelpText", resourceCulture);
+ return ResourceManager.GetString("lvResultsListViewHelpTextCollapsed", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Press left arrow key to collapse, enter or space to toggle children highlighting.
+ ///
+ public static string lvResultsListViewHelpTextExpanded {
+ get {
+ return ResourceManager.GetString("lvResultsListViewHelpTextExpanded", resourceCulture);
}
}
diff --git a/src/AccessibilityInsights.SharedUx/Properties/Resources.resx b/src/AccessibilityInsights.SharedUx/Properties/Resources.resx
index 2e3942c6b..aefbb49e0 100644
--- a/src/AccessibilityInsights.SharedUx/Properties/Resources.resx
+++ b/src/AccessibilityInsights.SharedUx/Properties/Resources.resx
@@ -387,9 +387,12 @@
{1} errors - {0}, {2} children highlighted
-
+
Press right arrow key to expand, enter or space to toggle children highlighting
+
+ Press left arrow key to collapse, enter or space to toggle children highlighting
+
Congratulations