Skip to content

Commit e60c101

Browse files
oletsbrc-dd
andauthoredApr 26, 2024··
fix(theme/a11y): add unique name to footer prev / next navigation landmark
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 parent 733d986 commit e60c101

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎src/client/theme-default/components/VPDocFooter.vue

+7-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ const showFooter = computed(() => {
3939
</div>
4040
</div>
4141

42-
<nav v-if="control.prev?.link || control.next?.link" class="prev-next">
42+
<nav
43+
v-if="control.prev?.link || control.next?.link"
44+
class="prev-next"
45+
aria-labelledby="doc-footer-aria-label"
46+
>
47+
<span class="visually-hidden" id="doc-footer-aria-label">Pager</span>
48+
4349
<div class="pager">
4450
<VPLink v-if="control.prev?.link" class="pager-link prev" :href="control.prev.link">
4551
<span class="desc" v-html="theme.docFooter?.prev || 'Previous page'"></span>

0 commit comments

Comments
 (0)
Please sign in to comment.