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. (#19776) (#19876)
  • Loading branch information
cjcenizal authored Jun 14, 2018
1 parent 685846a commit 2ca22db
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 2ca22db

Please sign in to comment.