Skip to content

Commit

Permalink
add unique aria-label for more navigations
Browse files Browse the repository at this point in the history
  • Loading branch information
rezrah committed Jan 17, 2024
1 parent 8393fcb commit d04410e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function RelatedContentLinks({links}: RelatedContentLinksProps) {
<Text as="p" size="100" variant="muted" weight="normal" className={styles.heading}>
Related content
</Text>
<NavList>
<NavList aria-label="Related content">
{links.map(page => (
<NavItem
className={styles.item}
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/components/layout/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function Sidebar({pageMap}: SidebarProps) {

return (
<div className={styles.Sidebar}>
<NavList className={styles.NavList}>
<NavList className={styles.NavList} aria-label="Menu links">
{reorderedPageMap.map(item => {
if (item.kind === 'MdxPage' && item.route === '/') return null

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function TableOfContents({headings}: TableOfContentsProps) {
<Text as="p" size="100" variant="muted" weight="normal" className={styles.heading}>
On this page
</Text>
<NavList>
<NavList aria-label="Table of contents">
{depth2Headings.map(heading => (
<NavList.Item
className={styles.item}
Expand Down

0 comments on commit d04410e

Please sign in to comment.