File tree 3 files changed +14
-3
lines changed
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ export const UnderlinedLinks = () => (
98
98
VerticalNav
99
99
</ Heading >
100
100
< VerticalNav
101
+ aria-label = "vertical navbar"
101
102
items = { [
102
103
{
103
104
items : [
@@ -316,6 +317,7 @@ export const TextSpacing = () => (
316
317
VerticalNav
317
318
</ Heading >
318
319
< VerticalNav
320
+ aria-label = "vertical navbar"
319
321
items = { [
320
322
{
321
323
items : [
Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ export default {
441
441
} ;
442
442
443
443
export const Default = ( ) => (
444
- < VerticalNav active = "6" items = { items } >
444
+ < VerticalNav active = "6" aria-label = "vertical navbar" items = { items } >
445
445
{ ( item ) => (
446
446
< VerticalNav . Item href = { item . href } items = { item . items } key = { item . id } >
447
447
{ item . label }
@@ -474,6 +474,7 @@ export const ControlledExpandedKeys = () => {
474
474
475
475
< VerticalNav
476
476
active = { active }
477
+ aria-label = "vertical navbar"
477
478
expandedKeys = { expandedKeys }
478
479
items = { items_long }
479
480
onExpandedChange = { setExpandedKeys }
@@ -616,6 +617,7 @@ export const Primary = () => {
616
617
return (
617
618
< VerticalNav
618
619
active = "Home"
620
+ aria-label = "vertical navbar"
619
621
displayType = "primary"
620
622
items = { items_cms_product_menu }
621
623
>
Original file line number Diff line number Diff line change @@ -70,7 +70,11 @@ export const Default = () => (
70
70
) ;
71
71
72
72
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
+ />
74
78
) ;
75
79
76
80
VerticalNav . args = {
@@ -79,6 +83,7 @@ VerticalNav.args = {
79
83
80
84
export const CustomTrigger = ( ) => (
81
85
< ClayVerticalNav
86
+ aria-label = "vertical navbar"
82
87
items = { items }
83
88
trigger = { ( props ) => (
84
89
< ClayVerticalNav . Trigger { ...props } >
@@ -92,4 +97,6 @@ export const CustomTrigger = () => (
92
97
/>
93
98
) ;
94
99
95
- export const WithDecorator = ( ) => < ClayVerticalNav decorated items = { items } /> ;
100
+ export const WithDecorator = ( ) => (
101
+ < ClayVerticalNav aria-label = "vertical navbar" decorated items = { items } />
102
+ ) ;
You can’t perform that action at this time.
0 commit comments