Skip to content

Commit 2fc9c3d

Browse files
committed
feat(@clayui/vertical-nav): LPD-46396 - Update stories
1 parent e86d6cc commit 2fc9c3d

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

packages/clay-core/stories/Accessibility.stories.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export const UnderlinedLinks = () => (
9898
VerticalNav
9999
</Heading>
100100
<VerticalNav
101+
aria-label="vertical navbar"
101102
items={[
102103
{
103104
items: [
@@ -316,6 +317,7 @@ export const TextSpacing = () => (
316317
VerticalNav
317318
</Heading>
318319
<VerticalNav
320+
aria-label="vertical navbar"
319321
items={[
320322
{
321323
items: [

packages/clay-core/stories/VerticalNav.stories.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export default {
441441
};
442442

443443
export const Default = () => (
444-
<VerticalNav active="6" items={items}>
444+
<VerticalNav active="6" aria-label="vertical navbar" items={items}>
445445
{(item) => (
446446
<VerticalNav.Item href={item.href} items={item.items} key={item.id}>
447447
{item.label}
@@ -474,6 +474,7 @@ export const ControlledExpandedKeys = () => {
474474

475475
<VerticalNav
476476
active={active}
477+
aria-label="vertical navbar"
477478
expandedKeys={expandedKeys}
478479
items={items_long}
479480
onExpandedChange={setExpandedKeys}
@@ -616,6 +617,7 @@ export const Primary = () => {
616617
return (
617618
<VerticalNav
618619
active="Home"
620+
aria-label="vertical navbar"
619621
displayType="primary"
620622
items={items_cms_product_menu}
621623
>

packages/clay-nav/stories/Nav.stories.tsx

+9-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ export const Default = () => (
7070
);
7171

7272
export const VerticalNav = (args: any) => (
73-
<ClayVerticalNav items={items} large={args.large} />
73+
<ClayVerticalNav
74+
aria-label="vertical navbar"
75+
items={items}
76+
large={args.large}
77+
/>
7478
);
7579

7680
VerticalNav.args = {
@@ -79,6 +83,7 @@ VerticalNav.args = {
7983

8084
export const CustomTrigger = () => (
8185
<ClayVerticalNav
86+
aria-label="vertical navbar"
8287
items={items}
8388
trigger={(props) => (
8489
<ClayVerticalNav.Trigger {...props}>
@@ -92,4 +97,6 @@ export const CustomTrigger = () => (
9297
/>
9398
);
9499

95-
export const WithDecorator = () => <ClayVerticalNav decorated items={items} />;
100+
export const WithDecorator = () => (
101+
<ClayVerticalNav aria-label="vertical navbar" decorated items={items} />
102+
);

0 commit comments

Comments
 (0)