Skip to content

Commit

Permalink
feat: Added aria-level for toc sublist items
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyujie2002 committed Sep 24, 2024
1 parent 068aaf2 commit 7263c38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/components/TableOfContents.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
<a
:href="`#${sublink.id}`"
Expand Down

0 comments on commit 7263c38

Please sign in to comment.