Skip to content

Commit e9baadc

Browse files
committed
chore: Add 'aria-label' for header & sidebar components
1 parent 8002756 commit e9baadc

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/components/header/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function MainNav() {
5151
};
5252

5353
return (
54-
<nav class={style.nav}>
54+
<nav class={style.nav} aria-label="Main navigation">
5555
<NavLink
5656
href="/"
5757
clsx="home"

src/components/sidebar/sidebar-nav.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ export default function SidebarNav({ items, onClick }) {
1616
const { path } = useRoute();
1717

1818
return (
19-
<nav class={cx(style.toc, !(items && items.length > 1) && style.disabled)}>
19+
<nav
20+
class={cx(style.toc, !(items && items.length > 1) && style.disabled)}
21+
aria-label="Sidebar Navigation"
22+
>
2023
{items.map(({ text, level, href, routes }) => {
2124
if (!href) {
2225
return (

0 commit comments

Comments
 (0)