aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-profiles
diff options
context:
space:
mode:
authorMathieu Suen <mathieu.suen@sonarsource.com>2023-02-01 16:37:22 +0100
committersonartech <sonartech@sonarsource.com>2023-02-03 20:02:53 +0000
commita514d3cd1692c97ff29c5aa48366d957cfdbb9b8 (patch)
treefeb1e717987795f1811a9af68b98260eb414da45 /server/sonar-web/src/main/js/apps/quality-profiles
parent87463757bd09191d2464b2f3778cf98411179fd0 (diff)
downloadsonarqube-a514d3cd1692c97ff29c5aa48366d957cfdbb9b8.tar.gz
sonarqube-a514d3cd1692c97ff29c5aa48366d957cfdbb9b8.zip
SONAR-18381 Improve landmark and heading level
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx4
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx4
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/HomeContainer.tsx8
3 files changed, 9 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx
index ddc968d65a0..5588a4d15b9 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileContainer.tsx
@@ -64,7 +64,9 @@ export default function ProfileContainer() {
isComparable={filteredProfiles.length > 1}
updateProfiles={context.updateProfiles}
/>
- <Outlet context={{ profile, ...context }} />
+ <main>
+ <Outlet context={{ profile, ...context }} />
+ </main>
</div>
);
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx
index 2ca6f42e977..c02116e3877 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileHeader.tsx
@@ -53,7 +53,7 @@ export default function ProfileHeader(props: Props) {
const isChangeLogPage = location.pathname.endsWith(`/${QualityProfilePath.CHANGELOG}`);
return (
- <div className="page-header quality-profile-header">
+ <header className="page-header quality-profile-header">
{(isComparePage || isChangeLogPage) && (
<Helmet
defer={false}
@@ -141,6 +141,6 @@ export default function ProfileHeader(props: Props) {
/>
</div>
)}
- </div>
+ </header>
);
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/HomeContainer.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/home/HomeContainer.tsx
index aef096a04f5..e06487ef75b 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/home/HomeContainer.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/HomeContainer.tsx
@@ -35,12 +35,12 @@ export default function HomeContainer() {
<PageHeader {...context} />
<div className="page-with-sidebar">
- <div className="page-main">
+ <main className="page-main">
<ProfilesList {...context} language={selectedLanguage} />
- </div>
- <div className="page-sidebar">
+ </main>
+ <aside className="page-sidebar">
<Evolution {...context} />
- </div>
+ </aside>
</div>
</div>
);