Skip to content

Commit

Permalink
Merge pull request #1 from olets/3516-footer-a11y
Browse files Browse the repository at this point in the history
footer prev / next navigation landmark has a unique name [upstream 3516]
  • Loading branch information
olets committed Apr 18, 2024
2 parents 469ff38 + db29920 commit 0352302
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/client/theme-default/components/VPDocFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ const showFooter = computed(() => {
</div>
</div>

<nav v-if="control.prev?.link || control.next?.link" class="prev-next">
<nav v-if="control.prev?.link || control.next?.link" class="prev-next" aria-labelledby="doc-footer-aria-label">
<span class="visually-hidden" id="doc-footer-aria-label">
Pager
</span>
<div class="pager">
<VPLink v-if="control.prev?.link" class="pager-link prev" :href="control.prev.link">
<span class="desc" v-html="theme.docFooter?.prev || 'Previous page'"></span>
Expand Down

0 comments on commit 0352302

Please sign in to comment.