From 7263c38961037933fd3d5816a09e716a9355bf8a Mon Sep 17 00:00:00 2001 From: hanyujie2002 <84226578+hanyujie2002@users.noreply.github.com> Date: Tue, 24 Sep 2024 10:37:07 +0800 Subject: [PATCH] feat: Added aria-level for toc sublist items --- src/runtime/components/TableOfContents.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/components/TableOfContents.vue b/src/runtime/components/TableOfContents.vue index 5b46725..b8c3ca0 100644 --- a/src/runtime/components/TableOfContents.vue +++ b/src/runtime/components/TableOfContents.vue @@ -49,6 +49,7 @@ class="toc-item toc-sublist-item" :class="{ 'active-toc-item active-toc-sublist-item': activeTocIds.has(sublink.id) || sublink.id === lastVisibleHeading }" role="listitem" + aria-level="4" >