]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-18356 Visual heading text is not marked as heading
authorstanislavh <stanislav.honcharov@sonarsource.com>
Wed, 8 Feb 2023 10:46:28 +0000 (11:46 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 9 Feb 2023 20:03:34 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionDeprecated.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionRules.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/EvolutionStagnant.tsx
server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/EvolutionDeprecated-test.tsx.snap
server/sonar-web/src/main/js/apps/quality-profiles/styles.css

index 7a50724438233fda16dab9e8ac7b888547de64ea..71f6f0b38e43737c042a697165ea4a1b226947ed 100644 (file)
@@ -107,9 +107,7 @@ export default class EvolutionDeprecated extends React.PureComponent<Props> {
 
     return (
       <div className="boxed-group boxed-group-inner quality-profiles-evolution-deprecated">
-        <div className="spacer-bottom">
-          <strong>{translate('quality_profiles.deprecated_rules')}</strong>
-        </div>
+        <h2 className="h4 spacer-bottom">{translate('quality_profiles.deprecated_rules')}</h2>
         <div className="spacer-bottom">
           {translateWithParameters(
             'quality_profiles.deprecated_rules_are_still_activated',
index 82edf68b9391c817a45e34a00184740c14771198..369672147cc4d410229f6fc0282ad45436ee45d7 100644 (file)
@@ -107,9 +107,7 @@ export default class EvolutionRules extends React.PureComponent<{}, State> {
 
     return (
       <div className="boxed-group boxed-group-inner quality-profiles-evolution-rules">
-        <div className="clearfix">
-          <strong className="pull-left">{newRulesTitle}</strong>
-        </div>
+        <h2 className="h4 spacer-bottom">{newRulesTitle}</h2>
         <ul>
           {latestRules.map((rule) => (
             <li className="spacer-top" key={rule.key}>
index 22952888f1cc45eee131ce29717c3fa31bb9ae3f..0aeceff15a6746fd3daef66b0ea9ac0e7b7268ba 100644 (file)
@@ -37,9 +37,7 @@ export default function EvolutionStagnant(props: Props) {
 
   return (
     <div className="boxed-group boxed-group-inner quality-profiles-evolution-stagnant">
-      <div className="spacer-bottom">
-        <strong>{translate('quality_profiles.stagnant_profiles')}</strong>
-      </div>
+      <h2 className="h4 spacer-bottom">{translate('quality_profiles.stagnant_profiles')}</h2>
       <div className="spacer-bottom">
         {translate('quality_profiles.not_updated_more_than_year')}
       </div>
index 27d0d2a0d5f67d945eae490e3db6809c0cfdfb97..3fb130a5d83ad743898d23ffdf0947a287a02a3b 100644 (file)
@@ -4,13 +4,11 @@ exports[`should render correctly 1`] = `
 <div
   className="boxed-group boxed-group-inner quality-profiles-evolution-deprecated"
 >
-  <div
-    className="spacer-bottom"
+  <h2
+    className="h4 spacer-bottom"
   >
-    <strong>
-      quality_profiles.deprecated_rules
-    </strong>
-  </div>
+    quality_profiles.deprecated_rules
+  </h2>
   <div
     className="spacer-bottom"
   >
index 7f17b819221bb62b1657e3afa77cd7c19c847d6a..3b7c844023f391e5bc38489fd6f27136e1205d44 100644 (file)
   background-color: var(--alertBackgroundWarning);
 }
 
+.quality-profiles-evolution-deprecated h2,
+.quality-profiles-evolution-stagnant h2,
+.quality-profiles-evolution-rules h2 {
+  padding: 0;
+}
+
 .quality-profile-comparison-table {
   table-layout: fixed;
 }