From 27d129e6891a8dbaf8b91844c8db6cc2bbbdfa3b Mon Sep 17 00:00:00 2001 From: sunilyadav840 Date: Fri, 1 Oct 2021 11:51:27 +0530 Subject: [PATCH] configure and fixed eslint jsx-a11y issues --- .eslintrc.js | 1 - less/documentDB.less | 3 ++ src/Common/Upload/Upload.tsx | 10 +++- .../CollapsibleSectionComponent.test.tsx.snap | 2 +- .../IndexingPolicyComponent.test.tsx.snap | 1 - .../ThroughputInput.test.tsx.snap | 4 -- .../EditorNeighborsComponent.tsx | 10 +++- .../EditorNodePropertiesComponent.tsx | 4 +- ...ditorNodePropertiesComponent.test.tsx.snap | 6 +-- ...NotificationConsoleComponent.test.tsx.snap | 6 ++- .../AddDatabasePanel.test.tsx.snap | 1 - ...teCollectionConfirmationPane.test.tsx.snap | 3 -- .../ExecuteSprocParamsPane.test.tsx.snap | 18 +++---- .../__snapshots__/LoadQueryPane.test.tsx.snap | 1 - .../Panes/PanelInfoErrorComponent.tsx | 10 +++- .../StringInputPane.test.tsx.snap | 3 -- ...eteDatabaseConfirmationPanel.test.tsx.snap | 3 -- src/Explorer/SplashScreen/SplashScreen.less | 25 +++++----- src/Explorer/SplashScreen/SplashScreen.tsx | 49 ++++++++++--------- .../Tabs/QueryTab/QueryTabComponent.tsx | 21 +++++--- .../StoredProcedureTabComponent.tsx | 7 ++- 21 files changed, 100 insertions(+), 88 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 74f83d9ad..e292cb2bd 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -34,7 +34,6 @@ module.exports = { }, ], rules: { - "jsx-a11y/anchor-is-valid": 1, "no-console": ["error", { allow: ["error", "warn", "dir"] }], curly: "error", "@typescript-eslint/switch-exhaustiveness-check": "error", diff --git a/less/documentDB.less b/less/documentDB.less index 79e9435c3..8e4e76539 100644 --- a/less/documentDB.less +++ b/less/documentDB.less @@ -3079,3 +3079,6 @@ settings-pane { background: white; height: 100%; } +.moreOption { + color: #337ab7; +} \ No newline at end of file diff --git a/src/Common/Upload/Upload.tsx b/src/Common/Upload/Upload.tsx index 3feb4fdfd..d2fbfec90 100644 --- a/src/Common/Upload/Upload.tsx +++ b/src/Common/Upload/Upload.tsx @@ -66,9 +66,15 @@ export const Upload: FunctionComponent = ({ onChange={onUpload} role="button" /> - + {title} - + ); diff --git a/src/Explorer/Controls/CollapsiblePanel/__snapshots__/CollapsibleSectionComponent.test.tsx.snap b/src/Explorer/Controls/CollapsiblePanel/__snapshots__/CollapsibleSectionComponent.test.tsx.snap index 675a79239..ee3212b4d 100644 --- a/src/Explorer/Controls/CollapsiblePanel/__snapshots__/CollapsibleSectionComponent.test.tsx.snap +++ b/src/Explorer/Controls/CollapsiblePanel/__snapshots__/CollapsibleSectionComponent.test.tsx.snap @@ -4,7 +4,7 @@ exports[`CollapsibleSectionComponent renders 1`] = `
`; diff --git a/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap b/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap index 0798c01ef..23d18b125 100644 --- a/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap +++ b/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap @@ -654,12 +654,10 @@ exports[`ThroughputInput Pane should render Default properly 1`] = ` > @@ -671,12 +669,10 @@ exports[`ThroughputInput Pane should render Default properly 1`] = ` diff --git a/src/Explorer/Graph/GraphExplorerComponent/EditorNeighborsComponent.tsx b/src/Explorer/Graph/GraphExplorerComponent/EditorNeighborsComponent.tsx index c77fc2852..ff50b9650 100644 --- a/src/Explorer/Graph/GraphExplorerComponent/EditorNeighborsComponent.tsx +++ b/src/Explorer/Graph/GraphExplorerComponent/EditorNeighborsComponent.tsx @@ -214,8 +214,14 @@ export class EditorNeighborsComponent extends React.Component - - Delete this.removeAddedEdgeToNeighbor(index)} /> + this.removeAddedEdgeToNeighbor(index)} + onClick={() => this.removeAddedEdgeToNeighbor(index)} + tabIndex={0} + > + Delete diff --git a/src/Explorer/Graph/GraphExplorerComponent/EditorNodePropertiesComponent.tsx b/src/Explorer/Graph/GraphExplorerComponent/EditorNodePropertiesComponent.tsx index 271c90ba9..43d2bdbf0 100644 --- a/src/Explorer/Graph/GraphExplorerComponent/EditorNodePropertiesComponent.tsx +++ b/src/Explorer/Graph/GraphExplorerComponent/EditorNodePropertiesComponent.tsx @@ -123,7 +123,7 @@ export class EditorNodePropertiesComponent extends React.Component { + onBlur={(e) => { singleValue.type = e.target.value as ViewModels.InputPropertyValueTypeString; if (singleValue.type === "null") { singleValue.value = undefined; @@ -217,7 +217,7 @@ export class EditorNodePropertiesComponent extends React.Component { + onBlur={(e) => { firstValue.type = e.target.value as ViewModels.InputPropertyValueTypeString; this.props.onUpdateProperties(this.props.editedProperties); }} diff --git a/src/Explorer/Graph/GraphExplorerComponent/__snapshots__/EditorNodePropertiesComponent.test.tsx.snap b/src/Explorer/Graph/GraphExplorerComponent/__snapshots__/EditorNodePropertiesComponent.test.tsx.snap index adffe505b..366f9d454 100644 --- a/src/Explorer/Graph/GraphExplorerComponent/__snapshots__/EditorNodePropertiesComponent.test.tsx.snap +++ b/src/Explorer/Graph/GraphExplorerComponent/__snapshots__/EditorNodePropertiesComponent.test.tsx.snap @@ -93,7 +93,7 @@ exports[` renders component 1`] = ` @@ -344,7 +344,7 @@ exports[` renders proper unicode 1`] = `