Skip to content

Commit

Permalink
feat(theme-default): add labels to differ nav landmarks (close #21)
Browse files Browse the repository at this point in the history
  • Loading branch information
nruffing committed Jan 21, 2024
1 parent e485be9 commit a68600f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion themes/theme-default/src/client/components/NavbarItems.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ useUpdateDeviceStatus(
</script>

<template>
<nav v-if="navbarLinks.length" class="navbar-items">
<nav
v-if="navbarLinks.length"
class="navbar-items"
aria-label="site navigation"
>
<div v-for="item in navbarLinks" :key="item.text" class="navbar-item">
<NavbarDropdown
v-if="item.children"
Expand Down
6 changes: 5 additions & 1 deletion themes/theme-default/src/client/components/PageNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ const nextNavLink = computed(() => {
</script>

<template>
<nav v-if="prevNavLink || nextNavLink" class="page-nav">
<nav
v-if="prevNavLink || nextNavLink"
class="page-nav"
aria-label="page navigation"
>
<p class="inner">
<span v-if="prevNavLink" class="prev">
<AutoLink :item="prevNavLink" />
Expand Down

0 comments on commit a68600f

Please sign in to comment.