HighWCAG 2.4.3 · Level AOperable
SPA Navigation Focus Reset Loss
Detects client-side SPA route transitions in React, Next.js, and Vue, verifying keyboard focus resets to the main heading or container.
Rule ID: custom-spa-route-focus · reported under Needs review, because a person should confirm it.
Who this affects
Keyboard and screen-reader users get lost when focus jumps to an unexpected place.
WCAG 2.4.3 Focus Order: read the W3C explanation of Focus Order
How to fix it
Problem
router.push('/dashboard'); // Focus remains stuck on previous page linkFixed
router.push('/dashboard'); document.querySelector('h1')?.focus();These are short examples. In the extension, A11yEngine points to the element on your own page and can suggest a fix for your code (HTML, React, Vue or Tailwind).
Find this on your own pages
Check any page for this and 100+ other issues in your browser, free.