From 77f2729a7686a2d64a3b744cdcf27b36adaa5cba Mon Sep 17 00:00:00 2001 From: "Keith J. Grant" Date: Wed, 21 Jul 2021 15:14:56 -0700 Subject: [PATCH] fix settings pages a11y issues --- awx/ui_next/src/components/DetailList/CodeDetail.js | 7 +++++-- awx/ui_next/src/components/DetailList/Detail.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/awx/ui_next/src/components/DetailList/CodeDetail.js b/awx/ui_next/src/components/DetailList/CodeDetail.js index 4bba4416c8..5e926c6f64 100644 --- a/awx/ui_next/src/components/DetailList/CodeDetail.js +++ b/awx/ui_next/src/components/DetailList/CodeDetail.js @@ -17,6 +17,7 @@ import Popover from '../Popover'; function CodeDetail({ value, label, mode, rows, helpText, dataCy }) { const labelCy = dataCy ? `${dataCy}-label` : null; const valueCy = dataCy ? `${dataCy}-value` : null; + const editorId = dataCy ? `${dataCy}-editor` : 'code-editor'; return ( <> @@ -27,12 +28,13 @@ function CodeDetail({ value, label, mode, rows, helpText, dataCy }) { data-cy={labelCy} >
- {label} - + {helpText && ( )} @@ -45,6 +47,7 @@ function CodeDetail({ value, label, mode, rows, helpText, dataCy }) { data-cy={valueCy} > (props.isEncrypted || props.isNotConfigured) && ` - color: var(--pf-global--Color--400); + color: var(--pf-global--disabled-color--100); `} `;