]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-18198 Removing nested interactive Clean as You Code element in Quality Gate...
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>
Fri, 13 Jan 2023 15:18:46 +0000 (16:18 +0100)
committersonartech <sonartech@sonarsource.com>
Mon, 16 Jan 2023 20:03:42 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/quality-gates/components/List.tsx

index 4de88601e08199cfe010771e8f911de4b770cd3d..12982af51ad90a70c97de03cefe95a23cac11d96 100644 (file)
@@ -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>
       ))}