Skip to content

Commit

Permalink
fix(Nav): subnav aria-label
Browse files Browse the repository at this point in the history
  • Loading branch information
adamviktora committed Aug 18, 2023
1 parent ae32e9c commit 1c664b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const HorizontalNavWithSubnav: React.FunctionComponent = () => {
);

const SubNav = (
<Nav onSelect={onSubNavSelect} aria-label="Nav" variant="horizontal-subnav">
<Nav onSelect={onSubNavSelect} aria-label="Subnav" variant="horizontal-subnav">
<NavList>
<NavItem itemId={7} isActive={activeSubNavItem === 7} to="#">
Horizontal subnav item 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const VerticalNavWithSubnav: React.FunctionComponent = () => {
const PageSkipToContent = <SkipToContent href={`#${pageId}`}>Skip to content</SkipToContent>;

const SubNav = (
<Nav onSelect={onSubNavSelect} aria-label="Nav" variant="horizontal-subnav">
<Nav onSelect={onSubNavSelect} aria-label="Subnav" variant="horizontal-subnav">
<NavList>
<NavItem itemId={7} isActive={activeSubNavItem === 7} to="#">
Horizontal subnav item 1
Expand Down

0 comments on commit 1c664b1

Please sign in to comment.