Skip to content

Commit

Permalink
Add aria-label to UnderlineNav default story (#3793)
Browse files Browse the repository at this point in the history
  • Loading branch information
broccolinisoup authored Oct 9, 2023
1 parent bb708c5 commit 953b609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UnderlineNav2/UnderlineNav2.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default {
export const Default: ComponentStory<typeof UnderlineNav> = () => {
const children = ['Code', 'Pull requests', 'Actions', 'Projects', 'Wiki']
return (
<UnderlineNav>
<UnderlineNav aria-label="Repository">
{children.map((child: string, index: number) => (
<UnderlineNavItem key={index} href="#" aria-current={index === 0 ? 'page' : undefined}>
{child}
Expand Down

0 comments on commit 953b609

Please sign in to comment.