Skip to content

Commit

Permalink
More a11y fixes for headings in stack monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
cachedout committed Dec 13, 2019
1 parent fe0ab27 commit 13479ca
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ export function AlertsPanel({ alerts, changeUrl }) {
<EuiFlexGroup justifyContent="spaceBetween">
<EuiFlexItem grow={false}>
<EuiTitle size="s">
<h4>
<h2>
<FormattedMessage
id="xpack.monitoring.cluster.overview.alertsPanel.topClusterTitle"
defaultMessage="Top cluster alerts"
/>
</h4>
</h2>
</EuiTitle>
</EuiFlexItem>
<EuiFlexItem grow={false}>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class CcrShard extends PureComponent {
>
<Fragment>
<EuiTitle size="s">
<h4>{formatDateTimeLocal(timestamp)}</h4>
<h2>{formatDateTimeLocal(timestamp)}</h2>
</EuiTitle>
<EuiHorizontalRule/>
<EuiCodeBlock language="json">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import {
EuiText,
EuiLink,
EuiFlexGroup,
EuiFlexItem
EuiFlexItem,
EuiScreenReaderOnly,
} from '@elastic/eui';
import { LicenseStatus, AddLicense } from 'plugins/xpack_main/components';
import { FormattedMessage } from '@kbn/i18n/react';
Expand Down Expand Up @@ -61,6 +62,14 @@ export function License(props) {
const { status, type, isExpired, expiryDate } = props;
return (
<EuiPage>
<EuiScreenReaderOnly>
<h1>
<FormattedMessage
id="xpack.monitoring.license.heading"
defaultMessage="License"
/>
</h1>
</EuiScreenReaderOnly>
<EuiPageBody>
<LicenseStatus
isExpired={isExpired}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import {
EuiText,
EuiTitle,
EuiTextColor,
EuiButtonEmpty
EuiButtonEmpty,
EuiScreenReaderOnly,
} from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import { toggleSetupMode } from '../../lib/setup_mode';
Expand Down Expand Up @@ -54,6 +55,14 @@ export function NoData(props) {
if (useInternalCollection) {
return (
<EuiPage>
<EuiScreenReaderOnly>
<h1>
<FormattedMessage
id="xpack.monitoring.no_data.internal_collection.heading"
defaultMessage="No monitoring data found. (Internal collection)"
/>
</h1>
</EuiScreenReaderOnly>
<EuiPageBody restrictWidth={600}>
<EuiPageContent
verticalPosition="center"
Expand Down Expand Up @@ -85,6 +94,14 @@ export function NoData(props) {

return (
<EuiPage>
<EuiScreenReaderOnly>
<h1>
<FormattedMessage
id="xpack.monitoring.no_data.heading"
defaultMessage="No monitoring data found."
/>
</h1>
</EuiScreenReaderOnly>
<EuiPageBody restrictWidth={600}>
<EuiPageContent
verticalPosition="center"
Expand Down

0 comments on commit 13479ca

Please sign in to comment.