Skip to content

Commit

Permalink
Accessibility improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
louderthan10 committed Nov 4, 2024
1 parent 9b9489f commit 6db784a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const { data: globalsData } = await useAsyncData('globals', async () => {
:pages="globalsData?.pages"
/>
<Alert />
<NuxtPage />
<main class="page" id="main" tabindex="-1">
<NuxtPage />
</main>
<Footer :globalData="globalsData?.global" />
</div>
</template>
3 changes: 3 additions & 0 deletions frontend/components/navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ defineProps({
to="/blog"
class="block p-2 hover:underline text-red-600 hover:text-red-600"
active-class="text-red-600"
:aria-current="$route.path === '/blog' ? 'page' : null"
>
Blog
</NuxtLink>
Expand All @@ -24,6 +25,7 @@ defineProps({
to="/guestbook"
class="block p-2 hover:underline text-red-600 hover:text-red-600"
active-class="text-red-600"
:aria-current="$route.path === '/guestbook' ? 'page' : null"
>
Guestbook
</NuxtLink>
Expand All @@ -33,6 +35,7 @@ defineProps({
:to="page.uri"
class="block p-2 hover:underline text-red-600 hover:text-red-600"
active-class="text-red-600"
:aria-current="$route.path === page.uri ? 'page' : null"
>
{{ page.title }}
</NuxtLink>
Expand Down

0 comments on commit 6db784a

Please sign in to comment.