]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-13107 Fix tooltips in rules page
authorJeremy Davis <jeremy.davis@sonarsource.com>
Thu, 27 Feb 2020 15:37:44 +0000 (16:37 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 28 Feb 2020 20:04:11 +0000 (20:04 +0000)
server/sonar-web/src/main/js/apps/coding-rules/components/RuleListItem.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleListItem-test.tsx.snap

index 9e680870bd8ee866b88dcac794696f4f07c9ead6..abb2299c78c57e5b165e27ebf30e6dc561d9eb97 100644 (file)
@@ -187,9 +187,7 @@ export default class RuleListItem extends React.PureComponent<Props> {
       </ConfirmButton>
     ) : (
       <Tooltip overlay={translate(overlayTranslationKey)}>
-        <Button
-          className="coding-rules-detail-quality-profile-deactivate button-red"
-          disabled={true}>
+        <Button className="coding-rules-detail-quality-profile-deactivate button-red disabled">
           {translate('coding_rules.deactivate')}
         </Button>
       </Tooltip>
index 2a91409ee8cd2a80d136ba7027d701831edef9b3..fce5093c87a37503817d87867bee32a603f49df8 100644 (file)
@@ -16,8 +16,7 @@ exports[`#renderDeactivateButton should render correctly 2`] = `
   overlay="coding_rules.need_extend_or_copy"
 >
   <Button
-    className="coding-rules-detail-quality-profile-deactivate button-red"
-    disabled={true}
+    className="coding-rules-detail-quality-profile-deactivate button-red disabled"
   >
     coding_rules.deactivate
   </Button>
@@ -32,8 +31,7 @@ exports[`renderActions should disable the button when I am on a built-in profile
     overlay="coding_rules.need_extend_or_copy"
   >
     <Button
-      className="coding-rules-detail-quality-profile-deactivate button-red"
-      disabled={true}
+      className="coding-rules-detail-quality-profile-deactivate button-red disabled"
     >
       coding_rules.deactivate
     </Button>