From 652cacef6f63d5b7b6d70ee6b05552286ba59196 Mon Sep 17 00:00:00 2001 From: guillaume-peoch-sonarsource Date: Mon, 16 Jan 2023 12:20:18 +0100 Subject: [PATCH] SONAR-18151 [1099147] Incorrect semantic markup --- .../coding-rules/components/RuleDetailsMeta.tsx | 4 ++-- .../__snapshots__/RuleDetailsMeta-test.tsx.snap | 12 ++++++------ .../apps/quality-gates/components/ListHeader.tsx | 4 ++-- .../changelog/ChangelogContainer.tsx | 5 ++--- .../ChangelogContainer-test.tsx.snap | 8 ++++---- .../compare/ComparisonContainer.tsx | 16 +++++++--------- .../details/ProfileInheritance.tsx | 4 ++-- .../ProfileInheritance-test.tsx.snap | 8 ++++---- .../quality-profiles/home/ProfilesListHeader.tsx | 4 ++-- .../ProfilesListHeader-test.tsx.snap | 4 ++-- 10 files changed, 33 insertions(+), 36 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsMeta.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsMeta.tsx index 058f4d5bbfa..f83c99f057c 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsMeta.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsMeta.tsx @@ -228,7 +228,7 @@ export default class RuleDetailsMeta extends React.PureComponent { const hasTypeData = !ruleDetails.isExternal || ruleDetails.type !== 'UNKNOWN'; return (
-
+
{this.renderKey()} {!ruleDetails.isExternal && ( @@ -247,7 +247,7 @@ export default class RuleDetailsMeta extends React.PureComponent {

{ruleDetails.name}

-
+
{hasTypeData && (