@@ -33,7 +33,7 @@ export const SidebarProduct = () => {
3333
3434 const productSection = ( ) => (
3535 < div className = "ml-3" data-testid = "product-sidebar" >
36- < NavList aria-label = "Product sidebar" >
36+ < NavList aria-label = "Product sidebar" role = "navigation" >
3737 { sidebarTree &&
3838 sidebarTree . childPages . map ( ( childPage ) => (
3939 < NavListItem key = { childPage . href } childPage = { childPage } />
@@ -51,15 +51,15 @@ export const SidebarProduct = () => {
5151 )
5252 return (
5353 < div className = "ml-3" >
54- < NavList aria-label = "REST sidebar overview articles" >
54+ < NavList aria-label = "REST sidebar overview articles" role = "navigation" >
5555 { conceptualPages . map ( ( childPage ) => (
5656 < NavListItem key = { childPage . href } childPage = { childPage } />
5757 ) ) }
5858 </ NavList >
5959
6060 < hr data-testid = "rest-sidebar-reference" className = "m-2" />
6161
62- < NavList aria-label = "REST sidebar reference pages" >
62+ < NavList aria-label = "REST sidebar reference pages" role = "navigation" >
6363 { restPages . map ( ( category ) => (
6464 < RestNavListItem key = { category . href } category = { category } />
6565 ) ) }
@@ -90,7 +90,7 @@ function NavListItem({ childPage }: { childPage: ProductTreeNode }) {
9090 >
9191 { childPage . title }
9292 { childPage . childPages . length > 0 && (
93- < NavList . SubNav aria-label = { childPage . title } sx = { { '*' : { fontSize : 1 } } } >
93+ < NavList . SubNav aria-label = { ` ${ childPage . title } submenu` } sx = { { '*' : { fontSize : 1 } } } >
9494 { specialCategory && (
9595 < NavList . Item href = { childPage . href } as = { Link } aria-current = { isActive ? 'page' : false } >
9696 { childPage . title }
@@ -155,7 +155,7 @@ function RestNavListItem({ category }: { category: ProductTreeNode }) {
155155 >
156156 { category . title }
157157 { category . childPages . length > 0 && (
158- < NavList . SubNav aria-label = { category . title } sx = { { '*' : { fontSize : 1 } } } >
158+ < NavList . SubNav aria-label = { ` ${ category . title } submenu` } sx = { { '*' : { fontSize : 1 } } } >
159159 { category . childPages . map ( ( childPage ) => {
160160 return (
161161 < NavList . Item
@@ -169,7 +169,7 @@ function RestNavListItem({ category }: { category: ProductTreeNode }) {
169169 { childPage . title }
170170
171171 { routePath === childPage . href && miniTocItems . length > 0 && (
172- < NavList . SubNav aria-label = { childPage . title } >
172+ < NavList . SubNav aria-label = { ` ${ childPage . title } table of contents` } >
173173 { miniTocItems . map ( ( item ) => {
174174 const isAnchorCurrent = visibleAnchor === item . contents . href
175175 return (
0 commit comments