From c6f98d59285656f179eea80662e86f7cf5329e59 Mon Sep 17 00:00:00 2001 From: Aijana Schumann Date: Mon, 30 Nov 2020 18:51:52 +0100 Subject: Add aria-labels Add aria-labels to odlux framework and apps Issue-ID: CCSDK-2886 Signed-off-by: Aijana Schumann Change-Id: If1fdf9f8a805b567dd65bcf2cfb029b71f9235b7 --- .../apps/connectApp/src/components/connectionStatusLog.tsx | 4 ++-- .../connectApp/src/components/editNetworkElementDialog.tsx | 6 +++--- .../connectApp/src/components/infoNetworkElementDialog.tsx | 14 ++++++++------ sdnr/wt/odlux/apps/connectApp/src/views/connectView.tsx | 6 +++--- 4 files changed, 16 insertions(+), 14 deletions(-) (limited to 'sdnr/wt/odlux/apps/connectApp') diff --git a/sdnr/wt/odlux/apps/connectApp/src/components/connectionStatusLog.tsx b/sdnr/wt/odlux/apps/connectApp/src/components/connectionStatusLog.tsx index 96f6c8a6b..f2fd2937d 100644 --- a/sdnr/wt/odlux/apps/connectApp/src/components/connectionStatusLog.tsx +++ b/sdnr/wt/odlux/apps/connectApp/src/components/connectionStatusLog.tsx @@ -42,9 +42,9 @@ class ConnectionStatusLogComponent extends React.Component ); diff --git a/sdnr/wt/odlux/apps/connectApp/src/components/editNetworkElementDialog.tsx b/sdnr/wt/odlux/apps/connectApp/src/components/editNetworkElementDialog.tsx index 3b4cf3bb5..97e6647cf 100644 --- a/sdnr/wt/odlux/apps/connectApp/src/components/editNetworkElementDialog.tsx +++ b/sdnr/wt/odlux/apps/connectApp/src/components/editNetworkElementDialog.tsx @@ -192,11 +192,11 @@ class EditNetworkElementDialogComponent extends React.Component { this.setState({ password: event.target.value }); }} /> || null} Required - { this.setState({ isRequired: event.target.value as any as boolean }); }} inputProps={{ name: 'required', id: 'required' }} fullWidth > - True - False + True + False diff --git a/sdnr/wt/odlux/apps/connectApp/src/components/infoNetworkElementDialog.tsx b/sdnr/wt/odlux/apps/connectApp/src/components/infoNetworkElementDialog.tsx index ea9d419ec..df8515e58 100644 --- a/sdnr/wt/odlux/apps/connectApp/src/components/infoNetworkElementDialog.tsx +++ b/sdnr/wt/odlux/apps/connectApp/src/components/infoNetworkElementDialog.tsx @@ -56,7 +56,7 @@ const settings: { [key: string]: DialogSettings } = { [InfoNetworkElementDialogMode.InfoNetworkElement]: { dialogTitle: "Yang capabilities of the network element", dialogDescription: "Available capabilities of the network element", - cancelButtonText: "Cancel", + cancelButtonText: "OK", } } @@ -97,6 +97,8 @@ class InfoNetworkElementDialogComponent extends React.Component a.module === b.module ? 0 : a.module > b.module ? 1 : -1); + return ( {setting.dialogTitle} @@ -104,7 +106,7 @@ class InfoNetworkElementDialogComponent extends React.Component {setting.dialogDescription + " " + this.state.nodeId} - +
S.No @@ -114,17 +116,17 @@ class InfoNetworkElementDialogComponent extends React.Component {yangCapabilities.map((yang, index) => ( - + {index + 1} - {yang.module} - {yang.revision} + {yang.module} + {yang.revision} ))}
-