From 25ef86a6c0ad5ac1b74c8ff8e24521df6584467c Mon Sep 17 00:00:00 2001 From: Sampath Date: Mon, 13 Mar 2023 17:11:43 +0530 Subject: [PATCH] Revert "Sev2 accessibilitydefects" This reverts commit a4e60f106c43d0fe994fc9a0749b084ae427397e. --- images/imgarrowlefticon.svg | 2 +- src/Common/TableEntity.tsx | 19 ++- .../ThroughputInput/ThroughputInput.tsx | 58 ++++--- .../ThroughputInput.test.tsx.snap | 73 +++++---- .../Controls/TreeComponent/TreeComponent.tsx | 2 +- .../__snapshots__/TreeComponent.test.tsx.snap | 5 - .../GraphVizComponent.tsx | 2 - .../MiddlePaneComponent.tsx | 6 +- .../NotificationConsoleComponent.tsx | 3 + ...NotificationConsoleComponent.test.tsx.snap | 6 + src/Explorer/Panes/AddCollectionPanel.tsx | 110 +++++++------- .../AddCollectionPanel.test.tsx.snap | 142 +++++++++--------- src/Explorer/SplashScreen/SplashScreen.tsx | 9 +- 13 files changed, 208 insertions(+), 229 deletions(-) diff --git a/images/imgarrowlefticon.svg b/images/imgarrowlefticon.svg index 716024607..cd886d754 100644 --- a/images/imgarrowlefticon.svg +++ b/images/imgarrowlefticon.svg @@ -1,5 +1,5 @@ - + \ No newline at end of file diff --git a/src/Common/TableEntity.tsx b/src/Common/TableEntity.tsx index aa5ad26da..54c27adf5 100644 --- a/src/Common/TableEntity.tsx +++ b/src/Common/TableEntity.tsx @@ -137,16 +137,15 @@ export const TableEntity: FunctionComponent = ({ /> {!isEntityValueDisable && ( -
- editEntity -
+ editEntity
)} {isDeleteOptionVisible && userContext.apiType !== "Cassandra" && ( diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx index 926b1af5c..d86b0414f 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx @@ -185,37 +185,35 @@ export const ThroughputInput: FunctionComponent = ({ -
- handleOnChangeMode(e, "Autoscale")} - /> - + handleOnChangeMode(e, "Autoscale")} + /> + - handleOnChangeMode(e, "Manual")} - /> - -
+ handleOnChangeMode(e, "Manual")} + /> +
{isAutoscaleSelected && ( diff --git a/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap b/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap index 864124ad4..009eab607 100644 --- a/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap +++ b/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap @@ -654,45 +654,44 @@ exports[`ThroughputInput Pane should render Default properly 1`] = `
-
+
+ Autoscale + + +
{node.children && ( -
+
{TreeNodeComponent.getSortedChildren(node).map((childNode: TreeNode) => (
@@ -468,7 +465,6 @@ exports[`TreeNodeComponent renders sorted children, expanded, leaves and parents
{ {/* svg load more icon inlined as-is here: remove the style="fill:#374649;" so we can override it */} {
Graph - +
diff --git a/src/Explorer/Menus/NotificationConsole/NotificationConsoleComponent.tsx b/src/Explorer/Menus/NotificationConsole/NotificationConsoleComponent.tsx index f27470a04..c7a2cf108 100644 --- a/src/Explorer/Menus/NotificationConsole/NotificationConsoleComponent.tsx +++ b/src/Explorer/Menus/NotificationConsole/NotificationConsoleComponent.tsx @@ -147,9 +147,12 @@ export class NotificationConsoleComponent extends React.Component<
-
- - Create new + + Create new - - Use existing -
+ + Use existing
{this.state.createNewDatabase && ( @@ -804,37 +802,35 @@ export class AddCollectionPanel extends React.Component -
- - On + + On - - Off -
+ + Off
{!this.isSynapseLinkEnabled() && ( diff --git a/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap b/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap index 000310d32..7adf8316f 100644 --- a/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap +++ b/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap @@ -42,43 +42,39 @@ exports[`AddCollectionPanel should render Default properly 1`] = ` horizontal={true} verticalAlign="center" > -
+ - - - Create new - - - - Use existing - -
+ Create new +
+ + + Use existing + -
+ - - - On - - - - Off - -
+ On +
+ + + Off + {
-
+
{userContext.apiType === "Postgres" ? "Welcome to Azure Cosmos DB for PostgreSQL" : "Welcome to Azure Cosmos DB"}