]> source.dussan.org Git - sonarqube.git/commitdiff
Remove yellow background on legend item without data on project activity page
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Wed, 20 Sep 2017 09:55:37 +0000 (11:55 +0200)
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>
Mon, 25 Sep 2017 11:18:37 +0000 (13:18 +0200)
server/sonar-web/src/main/js/apps/projectActivity/components/GraphsLegendItem.tsx
server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/GraphsLegendItem-test.tsx.snap

index 63be475f83f392692726b1019d6b0e54b4386f36..a2c10331cd447270aede128753b1e5978d559254 100644 (file)
@@ -43,10 +43,7 @@ export default class GraphsLegendItem extends React.PureComponent<Props> {
   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 (
index 1c660cd406e745ed848c7da5d9b106b7bcf44998..0133ac83d5c3ce73efb1ba39188a5c648fcc931e 100644 (file)
@@ -33,7 +33,7 @@ exports[`should render correctly an actionable legend 1`] = `
 
 exports[`should render correctly legends with warning 1`] = `
 <span
-  className="alert-warning myclass"
+  className="myclass"
 >
   <AlertWarnIcon
     className="spacer-right"