]> source.dussan.org Git - sonarqube.git/commitdiff
Remove inappropriate usage of outline badges
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Wed, 19 Jun 2019 09:39:33 +0000 (11:39 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 28 Jun 2019 06:45:43 +0000 (08:45 +0200)
server/sonar-web/src/main/js/apps/overview/components/EmptyOverview.tsx
server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/EmptyOverview-test.tsx.snap
server/sonar-web/src/main/js/components/charts/BubbleChart.tsx

index 155ec59ce3a9246d89f83d7eae4e077964417068..f3b647f23dc6ff572a2ffa0719a47b4d5a378703 100644 (file)
@@ -111,9 +111,7 @@ export function WarningMessage({
         id={message}
         values={{
           branchName: branchLike.name,
-          branchType: (
-            <div className="outline-badge text-baseline">{translate('branches.main_branch')}</div>
-          )
+          branchType: translate('branches.main_branch')
         }}
       />
     </Alert>
index 22173c3d13f771fb44a0567cbabd08d3a0b33889..f789b6aff75cf4bc812c509168fc6eb4f430205a 100644 (file)
@@ -276,11 +276,7 @@ exports[`should render warning message 1`] = `
     values={
       Object {
         "branchName": "master",
-        "branchType": <div
-          className="outline-badge text-baseline"
-        >
-          branches.main_branch
-        </div>,
+        "branchType": "branches.main_branch",
       }
     }
   />
index c828678d77efe1ede0754f53fdb1af8da4cda996..5d357eb9655478f0663f746071371dd4dfbfad7c 100644 (file)
@@ -328,10 +328,7 @@ export default class BubbleChart<T> extends React.PureComponent<Props<T>, State>
       <div>
         <div className="bubble-chart-zoom">
           <Tooltip overlay={translate('component_measures.bubble_chart.zoom_level')}>
-            <Link
-              className={classNames('outline-badge', { active: this.state.transform.k > 1 })}
-              onClick={this.resetZoom}
-              to="#">
+            <Link onClick={this.resetZoom} to="#">
               {this.getZoomLevelLabel()}
             </Link>
           </Tooltip>