Skip to content

Commit

Permalink
nav html for accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
snide committed May 18, 2018
1 parent 28e2970 commit 65a7a63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`EuiHeaderLinks is rendered 1`] = `
<div
<nav
aria-label="aria-label"
class="euiHeaderLinks testClass1 testClass2"
data-test-subj="test subject string"
Expand Down Expand Up @@ -43,5 +43,5 @@ exports[`EuiHeaderLinks is rendered 1`] = `
</button>
</div>
</div>
</div>
</nav>
`;
5 changes: 3 additions & 2 deletions src/components/header/header_links/header_links.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ export class EuiHeaderLinks extends Component {
);

return (
<div
<nav
className={classes}
aria-label="App navigation"
{...rest}
>

Expand All @@ -74,7 +75,7 @@ export class EuiHeaderLinks extends Component {
{children}
</EuiPopover>

</div>
</nav>
);
}
}
Expand Down

0 comments on commit 65a7a63

Please sign in to comment.