diff options
author | Revanshu Paliwal <revanshu.paliwal@sonarsource.com> | 2023-01-13 16:18:46 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-01-16 20:03:42 +0000 |
commit | 512bc0b355e44ff095d1fd260662d1e7810fea68 (patch) | |
tree | 7069cefec19b462daa3230e79def9ca51e407a5b /server | |
parent | 894788e9c4fa951937cc71d1a75f771740256a53 (diff) | |
download | sonarqube-512bc0b355e44ff095d1fd260662d1e7810fea68.tar.gz sonarqube-512bc0b355e44ff095d1fd260662d1e7810fea68.zip |
SONAR-18198 Removing nested interactive Clean as You Code element in Quality Gate page menu
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-gates/components/List.tsx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/List.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/List.tsx index 4de88601e08..12982af51ad 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/List.tsx +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/List.tsx @@ -48,10 +48,15 @@ export default function List({ qualityGates }: Props) { <span className="badge little-spacer-left">{translate('default')}</span> )} {qualityGate.isBuiltIn && <BuiltInQualityGateBadge className="little-spacer-left" />} + {!qualityGate.isCaycCompliant && ( - <Tooltip overlay={translate('quality_gates.cayc.tooltip.message')}> - <AlertWarnIcon className="spacer-left" /> - </Tooltip> + <> + {/* Adding a11y-hidden span for accessibility */} + <span className="a11y-hidden">{translate('quality_gates.cayc.tooltip.message')}</span> + <Tooltip overlay={translate('quality_gates.cayc.tooltip.message')} accessible={false}> + <AlertWarnIcon className="spacer-left" /> + </Tooltip> + </> )} </NavLink> ))} |