From 80775464cd813518692f180547d5a5e9bbb58125 Mon Sep 17 00:00:00 2001 From: Satyapriya Bai Date: Mon, 10 Feb 2025 17:10:15 +0530 Subject: [PATCH] [accessibility-3739618]:[Screen Reader - Azure Cosmos DB- Data Explorer - Graphs]: Screen Reader announces both expanded and collapsed information simultaneously for expand/collapse button in bottom notification region under 'Data Explorer' pane. --- .../NotificationConsoleComponent.tsx | 12 +++++----- ...NotificationConsoleComponent.test.tsx.snap | 24 +++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/Explorer/Menus/NotificationConsole/NotificationConsoleComponent.tsx b/src/Explorer/Menus/NotificationConsole/NotificationConsoleComponent.tsx index e86f08320..1821fd14c 100644 --- a/src/Explorer/Menus/NotificationConsole/NotificationConsoleComponent.tsx +++ b/src/Explorer/Menus/NotificationConsole/NotificationConsoleComponent.tsx @@ -109,15 +109,15 @@ export class NotificationConsoleComponent extends React.Component<
- in progress items + In progress items {numInProgress} - error items + Error items {numErroredItems} - info items + Info items {numInfoItems} @@ -134,12 +134,12 @@ export class NotificationConsoleComponent extends React.Component< data-test="NotificationConsole/ExpandCollapseButton" role="button" tabIndex={0} - aria-label={"console button" + (this.props.isConsoleExpanded ? " expanded" : " collapsed")} - aria-expanded={!this.props.isConsoleExpanded} + aria-label="Console" + aria-expanded={this.props.isConsoleExpanded} > {this.props.isConsoleExpanded
diff --git a/src/Explorer/Menus/NotificationConsole/__snapshots__/NotificationConsoleComponent.test.tsx.snap b/src/Explorer/Menus/NotificationConsole/__snapshots__/NotificationConsoleComponent.test.tsx.snap index 57267f1e0..268b110b0 100644 --- a/src/Explorer/Menus/NotificationConsole/__snapshots__/NotificationConsoleComponent.test.tsx.snap +++ b/src/Explorer/Menus/NotificationConsole/__snapshots__/NotificationConsoleComponent.test.tsx.snap @@ -21,7 +21,7 @@ exports[`NotificationConsoleComponent renders the console 1`] = ` className="notificationConsoleHeaderIconWithData" > in progress items error items info items
ChevronUpIcon
@@ -192,7 +192,7 @@ exports[`NotificationConsoleComponent renders the console 2`] = ` className="notificationConsoleHeaderIconWithData" > in progress items error items info items
ChevronUpIcon