Skip to content

Commit

Permalink
update example custom aria labels as per pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gitdallas committed Oct 13, 2022
1 parent 8eba272 commit 8dc70d2
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const NavDefault: React.FunctionComponent = () => {
};

return (
<Nav onSelect={onSelect} aria-label="Default global nav">
<Nav onSelect={onSelect} aria-label="Default global">
<NavList>
<NavItem preventDefault id="nav-default-link1" to="#nav-default-link1" itemId={0} isActive={activeItem === 0}>
Default Link 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const NavigationDrilldown: React.FunctionComponent = () => {
};

return (
<Nav aria-label="Drilldown global nav">
<Nav aria-label="Drilldown global">
<Menu
id="nav-drilldown-rootMenu"
containsDrilldown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const NavExpandableExample: React.FunctionComponent = () => {
};

return (
<Nav onSelect={onSelect} onToggle={onToggle} aria-label="Expandable global nav">
<Nav onSelect={onSelect} onToggle={onToggle} aria-label="Expandable global">
<NavList>
<NavExpandable
title="Expandable Group 1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const NavExpandableThirdLevel: React.FunctionComponent = () => {
};

return (
<Nav onSelect={onSelect} onToggle={onToggle} aria-label="Expandable third level global nav">
<Nav onSelect={onSelect} onToggle={onToggle} aria-label="Expandable third level global">
<NavList>
<NavExpandable
title="Expandable section title 1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const NavFlyout: React.FunctionComponent = () => {
}

return (
<Nav onSelect={onSelect} aria-label="Flyout global nav">
<Nav onSelect={onSelect} aria-label="Flyout global">
<NavList>
<NavItem
preventDefault
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const NavGrouped: React.FunctionComponent = () => {
};

return (
<Nav onSelect={onSelect} aria-label="Grouped global nav">
<Nav onSelect={onSelect} aria-label="Grouped global">
<NavGroup title="Section title 1">
<NavItem
preventDefault
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const NavHorizontalPageHeader: React.FunctionComponent = () => {
};

const nav = (
<Nav onSelect={onSelect} variant="horizontal" aria-label="Horizontal global nav">
<Nav onSelect={onSelect} variant="horizontal" aria-label="Horizontal global">
<NavList>
{Array.apply(0, Array(10)).map(function(_item, index: number) {
const num = index + 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const NavHorizontalSubNav: React.FunctionComponent = () => {
};

return (
<Nav onSelect={onSelect} variant="horizontal-subnav" aria-label="Horizontal subnav global nav">
<Nav onSelect={onSelect} variant="horizontal-subnav" aria-label="Horizontal subnav local">
<NavList>
{Array.apply(0, Array(10)).map(function(_item, index: number) {
const num = index + 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const NavLegacyTertiary: React.FunctionComponent = () => {
};

return (
<Nav onSelect={onSelect} variant="tertiary" aria-label="Tertiary global nav">
<Nav onSelect={onSelect} variant="tertiary" aria-label="Tertiary local">
<NavList>
{Array.apply(0, Array(10)).map(function(_item, index: number) {
const num = index + 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const NavMixed: React.FunctionComponent = () => {
};

return (
<Nav onSelect={onSelect} aria-label="Mixed global nav">
<Nav onSelect={onSelect} aria-label="Mixed global">
<NavList>
<NavItem
preventDefault
Expand Down

0 comments on commit 8dc70d2

Please sign in to comment.