Skip to content

Commit

Permalink
Give heading element to beats overview
Browse files Browse the repository at this point in the history
  • Loading branch information
cachedout committed Dec 5, 2019
1 parent 36e5312 commit e35ccc4
Showing 1 changed file with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import {
EuiFlexItem,
EuiPageBody,
EuiPanel,
EuiPageContent
EuiPageContent,
EuiScreenReaderOnly,
} from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import { i18n } from '@kbn/i18n';
Expand All @@ -31,12 +32,12 @@ function renderLatestActive(latestActive, latestTypes, latestVersions) {
<EuiFlexItem>
<EuiPanel>
<EuiTitle size="s">
<h3>
<h2>
<FormattedMessage
id="xpack.monitoring.beats.overview.activeBeatsInLastDayTitle"
defaultMessage="Active Beats in Last Day"
/>
</h3>
</h2>
</EuiTitle>
<EuiSpacer size="s"/>
<LatestActive latestActive={latestActive} />
Expand All @@ -45,12 +46,12 @@ function renderLatestActive(latestActive, latestTypes, latestVersions) {
<EuiFlexItem>
<EuiPanel>
<EuiTitle size="s">
<h3>
<h2>
<FormattedMessage
id="xpack.monitoring.beats.overview.top5BeatTypesInLastDayTitle"
defaultMessage="Top 5 Beat Types in Last Day"
/>
</h3>
</h2>
</EuiTitle>
<EuiSpacer size="s"/>
<LatestTypes latestTypes={latestTypes} />
Expand All @@ -59,12 +60,12 @@ function renderLatestActive(latestActive, latestTypes, latestVersions) {
<EuiFlexItem>
<EuiPanel>
<EuiTitle size="s">
<h3>
<h2>
<FormattedMessage
id="xpack.monitoring.beats.overview.top5VersionsInLastDayTitle"
defaultMessage="Top 5 Versions in Last Day"
/>
</h3>
</h2>
</EuiTitle>
<EuiSpacer size="s"/>
<LatestVersions latestVersions={latestVersions} />
Expand Down Expand Up @@ -118,6 +119,14 @@ export function BeatsOverview({
return (
<EuiPage>
<EuiPageBody>
<EuiScreenReaderOnly>
<h1>
<FormattedMessage
id="xpack.monitoring.beats.overview.heading"
defaultMessage="Beats overview"
/>
</h1>
</EuiScreenReaderOnly>
<EuiPageContent>
<Stats stats={stats} />
{renderLatestActive(latestActive, latestTypes, latestVersions)}
Expand Down

0 comments on commit e35ccc4

Please sign in to comment.