Skip to content

Commit

Permalink
Merge branch 'main' into sidebar-details
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed Apr 18, 2024
2 parents 1148d0b + 04ee7d7 commit 7362f5f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
21 changes: 12 additions & 9 deletions src/client/theme-default/components/VPDocAsideOutline.vue
Expand Up @@ -25,7 +25,8 @@ useActiveAnchor(container, marker)
</script>

<template>
<div
<nav
aria-labelledby="doc-outline-aria-label"
class="VPDocAsideOutline"
:class="{ 'has-outline': headers.length > 0 }"
ref="container"
Expand All @@ -34,16 +35,18 @@ useActiveAnchor(container, marker)
<div class="content">
<div class="outline-marker" ref="marker" />

<div class="outline-title" role="heading" aria-level="2">{{ resolveTitle(theme) }}</div>
<div
aria-level="2"
class="outline-title"
id="doc-outline-aria-label"
role="heading"
>
{{ resolveTitle(theme) }}
</div>

<nav aria-labelledby="doc-outline-aria-label">
<span class="visually-hidden" id="doc-outline-aria-label">
Table of Contents for current page
</span>
<VPDocOutlineItem :headers="headers" :root="true" />
</nav>
<VPDocOutlineItem :headers="headers" :root="true" />
</div>
</div>
</nav>
</template>

<style scoped>
Expand Down
6 changes: 5 additions & 1 deletion src/client/theme-default/components/VPDocFooter.vue
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 7362f5f

Please sign in to comment.