Nuxt

nuxt/route-announcer

The app renders NuxtRouteAnnouncer (in app.vue or a layout) so client-side page changes are announced.

moderatestaticWCAG 4.1.3 · AAfe-nuxt

Why

After the first load, Nuxt changes pages without a browser navigation. A screen reader user who follows a link hears nothing: no new page title, no sign that the content changed, and keeps reading where they were.

Fix

Render <NuxtRouteAnnouncer /> once, in app.vue or in every layout. It announces the new page's title in a polite live region, so give each page a distinct title with useHead or useSeoMeta. Move focus to the main heading or <main> as well when the design allows.

Examples

<!-- good: app.vue -->
<template>
  <NuxtRouteAnnouncer />
  <NuxtLayout><NuxtPage /></NuxtLayout>
</template>

Sources

Facts

Id
nuxt/route-announcer
Severity
moderate
Check
static checked in the source by audit
Applies to
project
Only in projects with
nuxt
WCAG 2.2
4.1.3, level AA
Taught by the skill
fe-nuxt Nuxt apps
Since version
0.1.0

Rule file on GitHub

Read it in the terminal

npx github:dawidolko/frontend-skills explain nuxt/route-announcer