Skip to content

Commit

Permalink
fix a11y of no data page
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Jan 10, 2020
1 parent 71f7ecc commit 3cd3ed5
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
EuiText,
EuiLink,
EuiCallOut,
EuiScreenReaderOnly,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import classNames from 'classnames';
Expand Down Expand Up @@ -158,7 +159,15 @@ function GuidancePanelComponent(props: GuidancePanelProps) {
title={i18n.translate('xpack.graph.noDataSourceNotificationMessageTitle', {
defaultMessage: 'No data source',
})}
heading="h1"
>
<EuiScreenReaderOnly>
<p id="graphHeading">
{i18n.translate('xpack.graph.noDataSourceNotificationMessageTitle', {
defaultMessage: 'No data source',
})}
</p>
</EuiScreenReaderOnly>
<p>
<FormattedMessage
id="xpack.graph.noDataSourceNotificationMessageText"
Expand Down

0 comments on commit 3cd3ed5

Please sign in to comment.