aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2022-10-07 11:22:15 +0200
committersonartech <sonartech@sonarsource.com>2022-10-11 20:03:59 +0000
commitdecfde9ccb7eaa2698e660d50fbe30a7777adf91 (patch)
tree192d87cc13a936def5fac590341bc88ec28a830e /server/sonar-web/src/main/js
parent4be6479134e70c0dc38be9875eb91e24d4bd0436 (diff)
downloadsonarqube-decfde9ccb7eaa2698e660d50fbe30a7777adf91.tar.gz
sonarqube-decfde9ccb7eaa2698e660d50fbe30a7777adf91.zip
SONAR-16975 [894133] Visual heading text is not marked as heading
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAnalysesList.tsx6
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityAnalysesList-test.tsx.snap72
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/projectActivity.css6
3 files changed, 31 insertions, 53 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAnalysesList.tsx b/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAnalysesList.tsx
index 8e99aee8cea..3a6966eecc3 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAnalysesList.tsx
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAnalysesList.tsx
@@ -199,7 +199,7 @@ export default class ProjectActivityAnalysesList extends React.PureComponent<Pro
<Tooltip
mouseEnterDelay={0.5}
overlay={`${translate('version')} ${version.version}`}>
- <span className="analysis-version">{version.version}</span>
+ <h2 className="analysis-version">{version.version}</h2>
</Tooltip>
</div>
)}
@@ -209,9 +209,9 @@ export default class ProjectActivityAnalysesList extends React.PureComponent<Pro
className="project-activity-day"
data-day={toShortNotSoISOString(Number(day))}
key={day}>
- <div className="project-activity-date">
+ <h3>
<DateFormatter date={Number(day)} long={true} />
- </div>
+ </h3>
<ul className="project-activity-analyses-list">
{version.byDay[day] != null &&
version.byDay[day].map(analysis => this.renderAnalysis(analysis))}
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityAnalysesList-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityAnalysesList-test.tsx.snap
index 1f18e89399f..7298b91e0d7 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityAnalysesList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityAnalysesList-test.tsx.snap
@@ -20,11 +20,11 @@ exports[`should correctly filter analyses by category 1`] = `
mouseEnterDelay={0.5}
overlay="version 6.4"
>
- <span
+ <h2
className="analysis-version"
>
6.4
- </span>
+ </h2>
</Tooltip>
</div>
<ul
@@ -35,14 +35,12 @@ exports[`should correctly filter analyses by category 1`] = `
data-day="ISO.1477267200000"
key="1477267200000"
>
- <div
- className="project-activity-date"
- >
+ <h3>
<DateFormatter
date={1477267200000}
long={true}
/>
- </div>
+ </h3>
<ul
className="project-activity-analyses-list"
>
@@ -101,11 +99,11 @@ exports[`should correctly filter analyses by date range 1`] = `
mouseEnterDelay={0.5}
overlay="version 6.5-SNAPSHOT"
>
- <span
+ <h2
className="analysis-version"
>
6.5-SNAPSHOT
- </span>
+ </h2>
</Tooltip>
</div>
<ul
@@ -116,14 +114,12 @@ exports[`should correctly filter analyses by date range 1`] = `
data-day="ISO.1477526400000"
key="1477526400000"
>
- <div
- className="project-activity-date"
- >
+ <h3>
<DateFormatter
date={1477526400000}
long={true}
/>
- </div>
+ </h3>
<ul
className="project-activity-analyses-list"
>
@@ -182,11 +178,11 @@ exports[`should render correctly: application 1`] = `
mouseEnterDelay={0.5}
overlay="version 6.5-SNAPSHOT"
>
- <span
+ <h2
className="analysis-version"
>
6.5-SNAPSHOT
- </span>
+ </h2>
</Tooltip>
</div>
<ul
@@ -197,14 +193,12 @@ exports[`should render correctly: application 1`] = `
data-day="ISO.1477526400000"
key="1477526400000"
>
- <div
- className="project-activity-date"
- >
+ <h3>
<DateFormatter
date={1477526400000}
long={true}
/>
- </div>
+ </h3>
<ul
className="project-activity-analyses-list"
>
@@ -272,11 +266,11 @@ exports[`should render correctly: application 1`] = `
mouseEnterDelay={0.5}
overlay="version 6.4"
>
- <span
+ <h2
className="analysis-version"
>
6.4
- </span>
+ </h2>
</Tooltip>
</div>
<ul
@@ -287,14 +281,12 @@ exports[`should render correctly: application 1`] = `
data-day="ISO.1477440000000"
key="1477440000000"
>
- <div
- className="project-activity-date"
- >
+ <h3>
<DateFormatter
date={1477440000000}
long={true}
/>
- </div>
+ </h3>
<ul
className="project-activity-analyses-list"
>
@@ -338,14 +330,12 @@ exports[`should render correctly: application 1`] = `
data-day="ISO.1477267200000"
key="1477267200000"
>
- <div
- className="project-activity-date"
- >
+ <h3>
<DateFormatter
date={1477267200000}
long={true}
/>
- </div>
+ </h3>
<ul
className="project-activity-analyses-list"
>
@@ -404,11 +394,11 @@ exports[`should render correctly: default 1`] = `
mouseEnterDelay={0.5}
overlay="version 6.5-SNAPSHOT"
>
- <span
+ <h2
className="analysis-version"
>
6.5-SNAPSHOT
- </span>
+ </h2>
</Tooltip>
</div>
<ul
@@ -419,14 +409,12 @@ exports[`should render correctly: default 1`] = `
data-day="ISO.1477526400000"
key="1477526400000"
>
- <div
- className="project-activity-date"
- >
+ <h3>
<DateFormatter
date={1477526400000}
long={true}
/>
- </div>
+ </h3>
<ul
className="project-activity-analyses-list"
>
@@ -494,11 +482,11 @@ exports[`should render correctly: default 1`] = `
mouseEnterDelay={0.5}
overlay="version 6.4"
>
- <span
+ <h2
className="analysis-version"
>
6.4
- </span>
+ </h2>
</Tooltip>
</div>
<ul
@@ -509,14 +497,12 @@ exports[`should render correctly: default 1`] = `
data-day="ISO.1477440000000"
key="1477440000000"
>
- <div
- className="project-activity-date"
- >
+ <h3>
<DateFormatter
date={1477440000000}
long={true}
/>
- </div>
+ </h3>
<ul
className="project-activity-analyses-list"
>
@@ -560,14 +546,12 @@ exports[`should render correctly: default 1`] = `
data-day="ISO.1477267200000"
key="1477267200000"
>
- <div
- className="project-activity-date"
- >
+ <h3>
<DateFormatter
date={1477267200000}
long={true}
/>
- </div>
+ </h3>
<ul
className="project-activity-analyses-list"
>
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/projectActivity.css b/server/sonar-web/src/main/js/apps/projectActivity/components/projectActivity.css
index c9dd45e14c6..2f4f0f9d65a 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/projectActivity.css
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/projectActivity.css
@@ -68,12 +68,6 @@
margin-bottom: 10px;
}
-.project-activity-date {
- margin-bottom: calc(2 * var(--gridSize));
- font-size: var(--bigFontSize);
- font-weight: bold;
-}
-
.project-activity-analysis {
position: relative;
min-height: var(--smallControlHeight);