[Frontend] Add focus management and a skip link for route changes

Open
#1,377 5 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@onyekachi66 is already working on this.

Since Nov 20, 2026.

  • #1395 by @onyekachi66 — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
54/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

Start with routing in apps/web/src/App.tsx and the document shell in apps/web/index.html; inspect how route changes, the main content region, and page headings are rendered. Add tests for the skip link target and focus behavior after navigation, including dialog focus. Done when the acceptance criteria pass and pnpm lint and pnpm typecheck succeed; accessibility tracking is linked to #1305.

Written by the indexing model from the issue text.

Description

frontend medium Stellar Wave ui

Summary

The single-page app changes views without moving focus or announcing the new page. Keyboard and screen reader users can be left at the previous control, and there is no skip link to the main content.

Motivation

Focus management is a core accessibility requirement for a client-rendered app. A skip link lets keyboard users bypass repeated navigation. Both changes are small and testable.

Proposed Solution

Add a skip link that targets the main content region. On a route change, move focus to the main heading or a focusable main container and update the document title. Keep focus in place for in-page dialogs and forms. Add tests for the skip link target and the focus move after navigation.

Scope

Field Value
Area Frontend
Protocol affected None
Network testnet and mainnet
Breaking change? No

Alternatives Considered

Relying on browser default focus after a history change does not work reliably in a client-rendered app. A full page reload would reset focus but loses state and is slower.

Acceptance Criteria

  • A skip link moves focus to the main content
  • A route change moves focus to the new page heading
  • The document title reflects the active route
  • In-page dialogs keep focus inside the dialog
  • Tests cover the skip link and route focus behavior
  • pnpm lint and pnpm typecheck pass

Additional Context

Routing is in apps/web/src/App.tsx and the document shell is apps/web/index.html. The accessibility gate is tracked in #1305.

Dominant language
TypeScript
Stars
17
Forks
129
Avg merge
3d 13h
Merged PRs (30d)
54

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from drydocs/meridian

All issues in drydocs/meridian

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.