return (
<div className="sw-mt-8">
- <PageTitle text={translate('overview.activity')} />
+ <PageTitle as="h2" text={translate('overview.activity')} />
<Card className="overview-panel sw-mt-4" data-test="overview__activity-panel">
<GraphsHeader graph={graph} metrics={metrics} onUpdateGraph={props.onGraphChange} />
<GraphsHistory
<div className="sw-float-right -sw-mt-6">
<ComponentReportActions component={component} branch={branch} />
</div>
- <h2 className="sw-flex sw-mb-4">
- <PageTitle text={translate('overview.measures')} />
- </h2>
+ <div className="sw-flex sw-mb-4">
+ <PageTitle as="h2" text={translate('overview.measures')} />
+ </div>
{loading ? (
<div>
export function QualityGateStatusTitle() {
return (
<div className="sw-flex sw-items-center sw-mb-4">
- <h2 className="sw-flex sw-items-center">
- <PageTitle text={translate('overview.quality_gate.status')} />
+ <div className="sw-flex sw-items-center">
+ <PageTitle as="h2" text={translate('overview.quality_gate.status')} />
<HelpTooltip
className="sw-ml-2"
overlay={<div className="sw-my-4">{translate('overview.quality_gate.help')}</div>}
>
<HelperHintIcon aria-label="help-tooltip" />
</HelpTooltip>
- </h2>
+ </div>
</div>
);
}
</div>
<div className="sw-flex-1">
- <h2 className="sw-body-md-highlight">
- <PageTitle text={translate('overview.measures')} />
- </h2>
+ <div className="sw-body-md-highlight">
+ <PageTitle as="h2" text={translate('overview.measures')} />
+ </div>
<div className="sw-grid sw-grid-cols-2 sw-gap-4 sw-mt-4">
{[