From be9622d03f1ee1d8f7acc1b377e6042c4e9546ae Mon Sep 17 00:00:00 2001 From: "Keith J. Grant" Date: Thu, 8 Apr 2021 16:08:54 -0700 Subject: [PATCH] fix missing ids/alt for a11y fixes --- awx/ui_next/src/components/AppContainer/AppContainer.jsx | 4 +++- awx/ui_next/src/components/AppContainer/BrandLogo.jsx | 4 +++- .../src/components/CodeEditor/VariablesDetail.jsx | 9 +++++++-- awx/ui_next/src/components/RoutedTabs/RoutedTabs.jsx | 3 +-- .../src/screens/Project/ProjectList/ProjectListItem.jsx | 2 +- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/awx/ui_next/src/components/AppContainer/AppContainer.jsx b/awx/ui_next/src/components/AppContainer/AppContainer.jsx index 4c290adb41..241175be36 100644 --- a/awx/ui_next/src/components/AppContainer/AppContainer.jsx +++ b/awx/ui_next/src/components/AppContainer/AppContainer.jsx @@ -138,10 +138,12 @@ function AppContainer({ i18n, navRouteConfig = [], children }) { } }, [handleLogout, timeRemaining]); + const brandName = config?.license_info?.product_name || 'brand'; + const header = ( } + logo={} logoProps={{ href: '/' }} headerTools={ ; +const BrandLogo = ({ alt }) => ( + +); export default BrandLogo; diff --git a/awx/ui_next/src/components/CodeEditor/VariablesDetail.jsx b/awx/ui_next/src/components/CodeEditor/VariablesDetail.jsx index 797c10673d..1a0f07fb27 100644 --- a/awx/ui_next/src/components/CodeEditor/VariablesDetail.jsx +++ b/awx/ui_next/src/components/CodeEditor/VariablesDetail.jsx @@ -70,6 +70,7 @@ function VariablesDetail({ dataCy, helpText, value, label, rows, i18n }) { css="grid-column: 1 / -1" >
-
+
+
{tabsArray.map(tab => ( {tab.name}} - role="tab" /> ))} diff --git a/awx/ui_next/src/screens/Project/ProjectList/ProjectListItem.jsx b/awx/ui_next/src/screens/Project/ProjectList/ProjectListItem.jsx index 55c265cf0d..b9c902c4a8 100644 --- a/awx/ui_next/src/screens/Project/ProjectList/ProjectListItem.jsx +++ b/awx/ui_next/src/screens/Project/ProjectList/ProjectListItem.jsx @@ -98,7 +98,7 @@ function ProjectListItem({ /> - + {project.name}