Skip to content

Commit

Permalink
Add aria-labelledby to index details flyout to tell screen reader wha…
Browse files Browse the repository at this point in the history
…t to announce when the flyout is opened. (elastic#19776)
  • Loading branch information
cjcenizal committed Jun 14, 2018
1 parent 83c0a9c commit 9d21c53
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,28 @@ export class DetailPanel extends Component {
component = <Summary />;
}
return (
<EuiFlyout data-test-subj="indexDetailFlyout" onClose={closeDetailPanel}>
<EuiFlyout
data-test-subj="indexDetailFlyout"
onClose={closeDetailPanel}
aria-labelledby="indexDetailsFlyoutTitle"
>
<EuiFlyoutHeader>
<EuiTitle size="l">
<EuiTitle size="l" id="indexDetailsFlyoutTitle">
<h2>{indexName}</h2>
</EuiTitle>
<EuiTabs>{this.renderTabs()}</EuiTabs>
</EuiFlyoutHeader>

<EuiFlyoutBody>{component}</EuiFlyoutBody>

<EuiFlyoutFooter>
<EuiFlexGroup justifyContent="spaceBetween">
<EuiFlexItem grow={false}>
<EuiButtonEmpty iconType="cross" onClick={closeDetailPanel}>
Close
</EuiButtonEmpty>
</EuiFlexItem>

<EuiFlexItem grow={false}>
<Route
key="menu"
Expand Down

0 comments on commit 9d21c53

Please sign in to comment.