Skip to content

Commit 5976903

Browse files
authored
docs(a11y): Use list for nav example (#1670)
1 parent 8408d15 commit 5976903

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/content/4.api/1.components/3.content-navigation.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ The `default`{lang=ts} slot can be used to render the content with `v-slot="{ na
1818
<template>
1919
<nav>
2020
<ContentNavigation v-slot="{ navigation }">
21-
<div v-for="link of navigation" :key="link._path">
22-
<NuxtLink :to="link._path">{{ link.title }}</NuxtLink>
23-
</div>
21+
<ul>
22+
<li v-for="link of navigation" :key="link._path">
23+
<NuxtLink :to="link._path">{{ link.title }}</NuxtLink>
24+
</li>
25+
</ul>
2426
</ContentNavigation>
2527
</nav>
2628
</template>

0 commit comments

Comments
 (0)