aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx
diff options
context:
space:
mode:
author7PH <benjamin.raymond@sonarsource.com>2023-11-30 15:10:43 +0100
committersonartech <sonartech@sonarsource.com>2023-12-01 20:02:43 +0000
commit8556bedb3b38d285ba5ac3ce040c7b4938c7063c (patch)
tree5a0feaa17eed547c8710c6ef2bc49565ae5b3968 /server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx
parent5f969fa44d41023d4411a4d8c3e0dc14e915ba27 (diff)
downloadsonarqube-8556bedb3b38d285ba5ac3ce040c7b4938c7063c.tar.gz
sonarqube-8556bedb3b38d285ba5ac3ce040c7b4938c7063c.zip
SONAR-21142 Update issues and rules page severity icons with transparency & gray background when disabled
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx
index 6d5d2340dc3..6006ce6105c 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/SeverityFacet.tsx
@@ -40,7 +40,9 @@ export function SeverityFacet(props: Props) {
itemNamePrefix="severity"
listItems={IMPACT_SEVERITIES}
selectedItems={severities}
- renderIcon={(severity: string) => <SoftwareImpactSeverityIcon severity={severity} />}
+ renderIcon={(severity: string, disabled: boolean) => (
+ <SoftwareImpactSeverityIcon severity={severity} disabled={disabled} />
+ )}
help={
<DocumentationTooltip
placement="right"