Skip to content

feat(admin): landmarks, skip link and a keyboard journey gate (spec 104) - #128

Merged
Andersseen merged 1 commit into
feat/admin-angular-22from
feat/admin-a11y-landmarks
Nov 17, 2026
Merged

Andersseen merged 1 commit into
feat/admin-angular-22from
feat/admin-a11y-landmarks

Conversation

@Andersseen

Copy link
Copy Markdown
Owner

Spec: docs/specs/104-admin-landmarks-and-keyboard-journey.md. V2-01 admin accessibility. Stacked on #127 (base feat/admin-angular-22).

What changes

  • Admin shell: skip link (first Tab stop, focuses the main region without leaving the admin), <nav aria-label="Admin">, breadcrumb <nav><ol> with aria-current="page", and role="main" on the page region. Sign-in/sign-up get the main landmark too. The role is dropped inside a host main.
  • Focus moves to the main region when a navigation leaves it on <body>.
  • "Log in" / "Exit" are single links. Each sidebar entry is one Tab stop: [routerLink] on <volt-sidebar-item> also matched Angular's RouterLink, which added an empty stop. The new gate found this.
  • Packed journey: a keyboard-only step (sign in → skip link → list → edit → save → dialog trap / Escape / restore → log out), plus axe on the editor and an open dialog.
  • LIMITATIONS "Admin accessibility" row removed. Patch changeset.

Compatibility impact

No API, option, default or REST change (check:api unchanged). Only markup changes; see the spec's compatibility section. Selectors that targeted the <button> inside "Log in"/"Exit" would need updating; that DOM was never stable surface.

Evidence (local, 2026-11-17)

  • Keyboard journey + axe (collections, posts, users, login, editor, open dialog): passes on Angular 22.2.6 / Analog 2.9.7 and Angular 21.2.10 / Analog 2.5.2, under workerd + D1 + R2.
  • @forge-cms/admin tests (8 new layout accessibility tests), e2e:tiny-project 27/27, e2e:demo 36/36 (styled axe incl. target-size).
  • format:check, lint, typecheck, test, build, docs:verify, check:api green.

To report upstream

  • Volt UI: volt-sidebar-item doesn't set ariaCurrentWhenActive, so the active entry isn't announced as current. Also, its routerLink input collides with Angular's RouterLink in templates that import it.
  • Lumen Icons: nothing new.

Add a skip link, Admin and Breadcrumb nav landmarks and a main landmark
(dropped inside a host main) to the admin shell and auth pages, keep focus
out of <body> after navigation, make Log in / Exit and sidebar entries one
Tab stop each, and gate a keyboard-only journey with axe scans on Angular
21 and 22 in the packed SSR journey.
@Andersseen

Copy link
Copy Markdown
Owner Author

Folded into #127: 1.1.0 ships as one PR (one commit per spec) and one minor changeset.

@Andersseen
Andersseen merged commit 44c48b8 into feat/admin-angular-22 Nov 17, 2026
@Andersseen
Andersseen deleted the feat/admin-a11y-landmarks branch November 17, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant