From: Grégoire Aubert Date: Wed, 20 Sep 2017 09:55:37 +0000 (+0200) Subject: Remove yellow background on legend item without data on project activity page X-Git-Tag: 6.6-RC1~258 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=53e0f8db8f5a7b5a5f50ec1cbe78b8c16280b3ce;p=sonarqube.git Remove yellow background on legend item without data on project activity page --- diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsLegendItem.tsx b/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsLegendItem.tsx index 63be475f83f..a2c10331cd4 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsLegendItem.tsx +++ b/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsLegendItem.tsx @@ -43,10 +43,7 @@ export default class GraphsLegendItem extends React.PureComponent { render() { const isActionable = this.props.removeMetric != null; const legendClass = classNames( - { - 'project-activity-graph-legend-actionable': isActionable, - 'alert-warning': this.props.showWarning - }, + { 'project-activity-graph-legend-actionable': isActionable }, this.props.className ); return ( diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/GraphsLegendItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/GraphsLegendItem-test.tsx.snap index 1c660cd406e..0133ac83d5c 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/GraphsLegendItem-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/GraphsLegendItem-test.tsx.snap @@ -33,7 +33,7 @@ exports[`should render correctly an actionable legend 1`] = ` exports[`should render correctly legends with warning 1`] = `