Repository navigation
feat(components): skip link, nav names, page titles and an axe gate - #284
Conversation
…branch `pnpm types:cms` and `pnpm sync:translations` both read SahajCloud `main`, never a branch, so neither can reach the keys sydevs/SahajCloud#1212 declares until that PR merges. Until then the generated file and the English mirror carry the producer branch's values by hand, which is what lets `tsc` and the translation-keys guard see them. `lib/translations.en.json` says in its own header that it is never hand-edited. Both files are re-synced from `main` before this PR is marked ready. Refs #278, sydevs/SahajCloud#1212 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjW6kGSmdstBu4WgtXx
A keyboard had no way past the menus, and a screen reader found three of six navigation landmarks sharing one name — the header nav, the footer link lists and the mega dropdown were all just "navigation". `SkipLink` is the first child of both chrome layouts, targeting the `<main>` each already marks for the route announcer. `tests/guards/nav-landmarks.test.ts` fails the unit lane on the next unnamed `<nav>`, so the rule survives the next one rather than needing to be remembered. Refs #278 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjW6kGSmdstBu4WgtXx
…ab stop
Three defects the new axe spec reports, fixed where they live:
A meditation page rendered no heading at all and served the site-default
`<title>`; a full lecture page served the site-default title too. Both are set
from the `(full)` route, never from the template the embed route shares.
`PageTemplate`'s `hideTitle` suppressed a page's only heading as well as its
banner, so a featured-nav page with no lead splash had none.
Every click-mode `Dropdown` wrapped a real `<button>` in a `role="button"`
div — axe `nested-interactive`, serious, on four callers — and left
`LanguageDropdown` taking two tab stops. The interaction moves onto the
trigger's own control, which retires the `tabIndex={-1}` two callers carried.
A `layout` section with no heading of its own left its items' `h3` orphaned,
and a linked `Column` contributed no heading where an unlinked one contributed
an `h3`.
Refs #278
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjW6kGSmdstBu4WgtXx
… to the floor A `SocialIcon` drew a 24×24 hit area where the house rule is 44 flatly, in the footer and in `SocialShare`. Growing the box beats an overlay here: two icons of a row sit closer than 44px apart, and overlapping overlays hand the shared strip to the later sibling. Both rows tighten their gap to pay for the room, and wrap rather than overflow. The player's play/pause button kept its tab stop and its place in the a11y tree while it was faded out, because `pointer-events-none` stops only the mouse. It takes `invisible` as well, lifted on hover together with the opacity, which is what `Header`'s compact bar already does for the same reason. `tests/_helpers/markup.ts` gains `openTag`, because `Header`'s own regexes read `<nav class="…"` and silently matched nothing once the landmark took a name. Refs #278 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjW6kGSmdstBu4WgtXx
…tent Two of #162's own success lines are prose, and both were unwritten: what a person checks that no automatic check can, and what a visitor without JavaScript gets instead. `docs/accessibility-walkthrough.md` is the script, with an empty record for whoever walks it — nobody has, so that goal line stays unticked. It also records where each third-party part was raised: sydevs/SahajAtlasWeb#432 for the map widget's interior, filed as a request, and #242 for the video player's controls. `components/AGENTS.md` gains the table for the four `ClientOnly` components, beside the rule that explains why they defer. `LocationSearch` recorded nothing at all, and no page renders it today. Refs #278 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjW6kGSmdstBu4WgtXx
`tests/a11y/page-types.test.tsx` renders all seven targets — the four page types a visitor browses, plus the two embedded players and a full lecture page — and runs axe with `best-practice` beside the five WCAG tags. Any finding fails. Nothing is a warning, which is the goal's own decision of 2026-10-09. It goes in `gate`, not `smoke`: `Smoke (web)` skips silently when no Cloudflare preview is discoverable, and a check that can skip cannot stop a change. `scripts/a11y-summary.mjs` writes the per-page counts to `GITHUB_STEP_SUMMARY`, on a red run too. Four rules are off by name. `color-contrast` and `target-size` need a drawn box, and the decision of 2026-10-21 moved both to the walk-through. `page-has-heading-one` and `landmark-one-main` are off because axe cannot confirm it is looking at a top frame under jsdom and answers `incomplete` for both even when the `<h1>` and the `<main>` are there — so the spec counts those two elements itself, which is stronger than the rule. `incomplete` otherwise counts as a finding, and that is what caught `Avatar` naming a bare `<span>` with `aria-label`, which carries no role to hang one on. Refs #278 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjW6kGSmdstBu4WgtXx
DOM order is what a keyboard and a screen reader read, and paint order does not change it — so a lead splash's absolutely positioned header overlay cannot take the first stop. Asserted on both `LayoutChrome` branches and on `LayoutMap`, and asserted absent on the two embed routes, which have no menus to skip and no `<main>` to point at. Refs #278 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjW6kGSmdstBu4WgtXx
…iew fixes The review pass found five things on this branch. Four hold: **The play/pause button keeps its tab stop.** `invisible` took it out of the tab order, and it is the only play/pause a keyboard can reach — the other `handlePlayPause` site is the frame's own non-focusable `<div onClick>`. So `focus-within:` reveals it instead: faded out it reads opacity 0 and `pointer-events: none`, and the moment focus lands on it, opacity 1 and `pointer-events: auto`, measured in a browser. That satisfies SC 2.4.7 without leaving a visitor no way to pause. `Header`'s compact bar may use `invisible` for the same fade, because every control in it duplicates a link reachable elsewhere. **`Dropdown` hands the interaction to the trigger only when the trigger is already operable** — a native interactive tag or the `Button` atom. A bare `<span>` trigger, which the atom's own story passes, would otherwise have taken `aria-expanded` onto an element with no role and no tab stop. **A lead splash is not proof of a heading.** `Splash` draws its `<h1>` only for a non-empty title, and the field is optional upstream, so `getLeadSplash` now reports `hasTitle` and `PageTemplate` supplies the stand-in for an untitled one. **The walk-through link** resolved to `docs/rules/accessibility-walkthrough.md`. The fifth was marked plausible and holds too: vike's client router intercepts a hash click and only scrolls, so the skip link moves focus itself. Refs #278 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjW6kGSmdstBu4WgtXx
Refs #278 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjW6kGSmdstBu4WgtXx
sydevs-bot
left a comment
There was a problem hiding this comment.
1 question for the reviewer, one per thread.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wemeditate-web | 01947eb | Commit Preview URL Branch Preview URL |
Nov 19 2026, 04:09 AM |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
The diff is the size of its ticket: eleven pieces, 43 files, nothing here #278 did not ask for. Switching the gate on last, so the first change under it comes back clean, is the right order, and the Avatar fix is joined rather than smuggled. The contract chain holds: SahajCloud#1215 declares all four keys, closes #1212, merges first, and both hand-copied files are flagged for re-sync. The play/pause deviation is already a question thread and its reasoning is sound — invisible would leave no keyboard path to pause. Four things to settle, none shape-level.
Findings
- should-fix
SkipLink.tsx:25—focus:text-primaryoverfocus:bg-whiteis about 3.7:1. - should-fix
Dropdown.tsx:33—isOperablefalls back to the nested-interactive wrapper. - should-fix
page-types.test.tsx:263— the rule-set assertion restates its own input. - should-fix
report-path.ts:8— one consumer, and the stated reason does not hold. - consider
Column.tsx:45— a third hand-rolled heading element beside theHeadingatom.
What was checked
#278 and parent #162; the whole diff; SahajCloud#1215 as the producer side. Read whole on the branch: Dropdown.tsx, Button.tsx, Heading.tsx, SkipLink.tsx, page-types.test.tsx, Dropdown.test.tsx, both layouts, a11y-summary.mjs, and tailwind.css's surface tokens. Ladder on each new piece: SkipLink (the repo has none), axe-core (the ticket's ask), openTag/classOf (extend an existing helper), nav-landmarks (reuses _source-scan.ts), report-path.ts (flagged). React 19 passes ref through ...props to Button's <button>, so the cloned reference does land. .claude/workflow.json declares no previewUrl and no fixture, and the body cites no preview URL — no link or fixture check owed. Every path the body names exists on the branch.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
`focus:text-primary` resolves to `teal-600`, which reads about 3.7:1 over the `focus:bg-white` band — under the 4.5:1 this branch exists to enforce, on the one control it adds. The axe gate has `color-contrast` off and nobody has walked the script yet, so nothing would have caught it. `text-fg` is `gray-900` on a light surface, which is the pairing the surface tokens ask for. Brand colours stay out of scope: this picks a foreground token, it does not change one. Refs #278 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYENDSPKKJ5e1QgKDL
`tests/a11y/report-path.ts` claimed the name was spelled once. It is not: `scripts/a11y-summary.mjs` defaults to it and `.gitignore` lists it, and neither can import a TypeScript module. So the file bought a second import for a constant with one consumer, on a reason that does not hold. The constant moves into the spec that writes the file, and its comment names the two other spellings it has to agree with. Refs #278 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYENDSPKKJ5e1QgKDL
`options()` builds its `rules` keys from the array it is handed, so comparing the keys with that array restated the input and could not fail. What the line read as guarding — which rules the gate turns off — went unasserted: adding `heading-order` to `UNDECIDABLE` still passed. Both lists are now asserted literally, so widening either one is a failing test rather than a silent change of scope. The embed relaxation is in the same line because the ticket names those two rules too. Refs #278 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYENDSPKKJ5e1QgKDL
…ed around `Column`, `LayoutCard` and `FooterLinkList` each opened their own heading element because `Heading` prepends `levelStyles`, which wins on source order over a caller's own `text-lg font-semibold`, and no `styleAs` size matches it. So the three owned both the look and the heading level, and the level is the part that has to stay right for the outline. `styleAs="none"` emits no type classes, which is the smallest escape the atom can offer. The three callers take it and keep their class lists, so the element is the atom's again and `level` is the only thing they choose. Refs #278 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYENDSPKKJ5e1QgKDL
`isOperable` decided *who* took the interaction from the trigger's element
type, and a type it did not recognise sent `role="button" tabIndex={0}` back
onto the wrapper — the `nested-interactive` defect this branch removes, around
whatever focusable control the caller had passed. The set recognised a native
interactive tag and the `Button` atom, so the `Link` atom and every component
that renders a control were misses, and nothing failed when one was passed.
The atom no longer guesses. `trigger` is a function handed the reference and
the popup props, and the control the caller renders is the one that carries
them, which is floating-ui's own pattern:
trigger={(props) => <Button {...props}>Open</Button>}
So there is no wrapper role left to fall back to, and `OPERABLE_TAGS`,
`isOperable` and the `cloneElement` go with it. `openOnFocus` is unchanged —
focus arrives at a child of the trigger there, so the wrapper keeps the
reference and the trigger is handed an empty object. A caller that forgets to
spread is a lint error on the unused parameter, where a missed type used to be
a silent axe violation.
The atom's "With Text Trigger" story passed a bare `<span>`, which only the
wrapper ever made operable; it passes a text-styled `<button>` now. The gate
gains a line holding the footer's language menu on its path, because that
menu is the only `Dropdown` any target renders and so the only thing that
makes the `nested-interactive` rule non-vacuous.
Refs #278
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjYENDSPKKJ5e1QgKDL
Both are rules a caller breaks silently. A `Dropdown` trigger that does not spread the props it is handed opens nothing, and one that renders a `<span>` is now operable by nothing, because the atom no longer manufactures a wrapper role. `Heading`'s `styleAs="none"` is the escape that stops the next caller opening its own heading element to keep its own size. Refs #278 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYENDSPKKJ5e1QgKDL
|
All five adversarial-review threads adopted and resolved.
One claim corrected in its thread: a Lean gate green, 1204 tests. The play/pause question thread still waits on you. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
…skip-link-nav-names
The play/pause's `focus-within:` pair was a comment and a one-off browser
measurement, so dropping either half silently restored the SC 2.4.7 defect
the PR removes. `ContentCarousel` already solves the same fade the other
way — `tabIndex={-1}` plus `aria-hidden`, because its arrows hide where
there is nothing to reach.
Which is right turns on whether the action is still available, so the guard
accepts either and refuses a fade that takes neither. Verified both ways:
deleting `focus-within:pointer-events-auto` from the player fails it.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZPdqobL9oiHdeDChD
|
Answered the one open thread. The play/pause question — you asked what I recommend, so: A. B fails SC 2.1.1 (Level A), not just the 2.4.7 the thread argued: the frame's Joined, not asked for (d3499ab). A's real weakness was maintainability — the Merged 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
…skip-link-nav-names Both sides replaced the same hand-written `<nav class="([^"]*)"` regexes in Header.test.tsx with a shared helper, so every hunk was one intent spelled twice. `main` (#269) is the stronger spelling: its `classOf` keys on a marker rather than a tag name, and it splits a class list before asserting membership, which `toContain` over the string does not do — `opacity-0` passes on `after:opacity-0`. So the test takes main's side, and `tests/_helpers/markup.ts` keeps main's four primitives plus this branch's `openTag`, which answers a whole opening tag and is the only one that can carry an assertion about an attribute other than `class` (Dropdown's `aria-expanded`, Heading's `text-lg`). PageTemplate's two `classOf` calls move to the marker signature. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXUht6jJ9xQcVoDYA3
|
Merged
Lean gate green: 0 lint errors, 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
axe's label-content-name-mismatch (main's new gate, #284) asked for review of the aria-label beside the visible wordmark on every page type. Co-Authored-By: Claude Opus 5.5 <[email protected]>
#284 added an sr-only `<h1>` to PageTemplate and to both media routes, touching the same lines this branch used to drop `usePageHead`. Git auto-merged those three files toward main and so restored a call to a function this branch deleted, which `tsc` and the new axe spec both caught. Both behaviours are kept: the heading stays, the head stays in the route's `+data.ts`. Lean gate green: eslint 0 errors, tsc clean, 1379 tests. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXf8waCzCDBbczmFsJ
Summary
<nav>says which menu it is, every page type has exactly one<h1>and its own<title>, and the social icons and the player's play button are reachable. Then anaxe-coregate goes on ingate, blocking, in that order — so the first change checked under it comes back clean.focus-within:pair could be half-deleted without failing anything, which is the defect it removes.tests/guards/faded-controls.test.tsnow holds every fade to one of its two shapes.Avatarnamed a bare<span>witharia-label, which carries no role to hang one on (axearia-prohibited-attr, serious). The gate found it; it is fixed here rather than filed.Change outline
Components — the skip link, and who owns the
<h1>LayoutRootis deliberately untouched: the two embed routes set noLayoutand render no<main>, so a link there would point at nothing.tests/a11y/page-types.test.tsxasserts the first focusable element in DOM order is the skip link on all five chrome targets, and that neither embed renders one.pages/[slug]/+Page.tsx # home and article are the same route PageTemplate usePageHead({ meta, fallbackTitle: title }) - PageTitle, unless a lead splash or `hideTitle` + PageTitle, unless a lead splash or `hideTitle` + Heading h1 sr-only # when neither draws one pages/meditations/[id]/(full)/+Page.tsx + usePageHead({ fallbackTitle: meditation.title }) + Heading h1 sr-only # the player draws no heading MeditationTemplate # shared with the embed route — sets neither pages/lectures/[id]/(full)/+Page.tsx + usePageHead({ fallbackTitle: lecture.title }) + Heading h1 sr-only, only when the lecture has no title LectureTemplate # already draws a visible h1 from the titleContract —
Dropdown's trigger, andgetLeadSplashThe atom put
role="button" tabIndex={0}on a wrapper<div>around the caller's real<button>: axenested-interactive, serious, on all four click-mode callers, and two tab stops forLanguageDropdown.triggerbecomes a function, and the control the caller renders carries the interaction.So the atom no longer decides who is operable, and
OPERABLE_TAGS,isOperableand thecloneElementare gone with the wrapper role. All four callers spread the props onto the control they already rendered;LocationSearch'sopenOnFocuspath keeps the wrapper reference and takes a thunk. The atom's own "With Text Trigger" story passed a bare<span>, operable only through the wrapper, and passes a text-styled<button>now. A caller that forgets to spread is a lint error on the unused parameter, where a missed element type used to be a silent axe violation.getLeadSplash(content) → { surface } lib/content-blocks.ts + → { surface, hasTitle }Splashdraws its<h1>only for a non-empty title, and that field is optional upstream — so a lead splash was not on its own proof that the page had a heading.PageTemplatereads the new field.Behaviour — two controls a keyboard could not use
It keeps its tab stop deliberately — see Notes for reviewer.
tests/guards/faded-controls.test.tsholds the choice, anddocs/rules/design-system.mdstates it: a fade drops the stop only where the action is unavailable, asContentCarousel's end-of-carousel arrows do.Behaviour — heading levels follow their section
LayoutBlock({ style, title, items }) components/molecules/blocks/LayoutBlock/LayoutBlock.tsx heading = title ? h2 : null + itemHeadingLevel = heading ? 'h3' : 'h2' # a section with no heading starts the level LayoutCard(item, headingLevel) - h3 when item.title + Heading level=headingLevel styleAs="none" ColumnCarousel(columns with headingLevel) Column(headingLevel) components/molecules/Column/Column.tsx - href ? bare Link (no heading at all) : h3 + Heading level=headingLevel styleAs="none", wrapping the Link or the text Heading({ level, styleAs, … }) components/atoms/Heading/Heading.tsx + styleAs="none" # no type classes at all; the caller draws the size FooterLinkList's column title components/molecules/FooterLinkList/FooterLinkList.tsx - h3 className="text-base font-semibold …" + Heading level="h3" styleAs="none" # same class list, the atom's elementA linked column and an unlinked one now contribute the same level, which they did not: one joined the outline and the next did not. The three callers keep their own type classes through
styleAs="none", so the element is the atom's andlevelis the only thing they choose.Flow — the gate, and what it can and cannot decide
pnpm test:run .github/workflows/ci.yml, job `gate` tests/a11y/page-types.test.tsx stub only vike: useData, useConfig, ClientOnly # the real Header and Footer render per target: renderToStaticMarkup → document → axe.run tags: wcag2a wcag2aa wcag21a wcag21aa wcag22aa best-practice violations + incomplete → fail # nothing is a warning off by name: color-contrast target-size # need a drawn box page-has-heading-one landmark-one-main # jsdom cannot decide them embeds also drop: region bypass # a fragment owns no landmark per target: count h1 and main directly # stands in for the two above + home: exactly one [aria-haspopup="menu"] # the only Dropdown any target renders + node scripts/a11y-summary.mjs # if: !cancelled() — counts to the job summary + tests/guards/faded-controls.test.ts # source scan, not a render: jsdom computes no CSS + opacity-0 + pointer-events-none → focus-within: pair, or tabIndex + aria-hiddenSeven targets: home, article, meditation, lecture,
/map, and the two embeds. Home and article are the same route component (pages/[slug]/+Page.tsx;/indexis the home page's slug), so they differ by fixture content.Preview
/map— the skip link on the condensed-header layoutlayoutsection's heading levels<title>, and the play/pause tab stop while it playsOnly
/and/mapare fixed routes; the other two are content slugs, so they are navigated to rather than linked.Test results
pnpm lint(0 errors),tsc --noEmit,pnpm test:run— 129 files, 1218 tests.tests/a11y/page-types.test.tsx(16: the rule-set check, the atom-coverage check, 7 structural, 7 axe), ✓ all sixteen guards including the two new ones,nav-landmarksandfaded-controls, ✓Heading/LectureTemplate/PageTemplate/LayoutChrome/Header/Dropdown/LanguageDropdown/EmbedButton/LocationSearch/MeditationPlayer/content-blocks.pnpm ladle:buildran green (it is agatestep, and the browser measurements below used its output).node -e "require.resolve('axe-core')"resolves from the repo root;grep -rn "happy-dom" package.jsonfinds nothing.aria-labelfromHeader.tsxmakestests/guards/nav-landmarks.test.tsfail, and deleting the meditation<h1>makes the gate's structural check fail. Deletingfocus-within:pointer-events-autofromMeditationPlayer.tsxmakestests/guards/faded-controls.test.tsfail. All three restored.Browser measurements — the two things jsdom cannot answer
Taken against the
pnpm ladle:buildoutput in headless Chromium, at 390, 768 and 1280px.Social icon hit areas,
organisms--footerandmolecules--social-share, every icon scrolled into view first. For each control: its rect, anddocument.elementFromPointat its centre and at four points 20px out.The skip link's reveal,
atoms--skip-linkat 390px:The play/pause overlay,
organisms--meditation-playerat 1280px, reading the wrapper's computed style after the 300ms transition settles:Manual verification
The walk-through script this PR adds —
docs/accessibility-walkthrough.md— is the full list. The parts no automated check here covers:/meditations/<id>and/map.curl -s <preview>/meditations/<id> | grep -o "<title>[^<]*</title>"returns the meditation's name, and the same request against/meditations/<id>/embedreturnsMeditation Player.Lint, Typecheck & Unitcheck shows the per-page violation table.One goal line stays unticked on purpose: nobody has walked the script. The record table in that doc is empty, and it is for a named person to fill.
Notes for reviewer
The set, and the order it merges in. This is the consumer half of #162. Its producer is sydevs/SahajCloud#1215, which declares the keys this reads. That PR merges first —
TranslationKeyis derived from the generated types, so at()call on an undeclared key is atscerror here until it reachesmain.Two files on this branch are hand-copies, and must be re-synced before merge.
pnpm types:cmsandpnpm sync:translationsboth read SahajCloudmain, never a branch, so during the buildserver/payload-types.tscarries the producer branch's generated entries andlib/translations.en.jsonthe four English strings, added by hand ina69e816— which says so, because that file's own header says it is never hand-edited. Once #1215 merges, both scripts run clean and leave the same values;server/payload-types.tsis additionally re-synced by the dispatcher's own contract sync.A fourth key was needed, and is in the producer PR. The ticket's
## Interfaceslists three. A lecture whosetitleis null left its page with no heading at all, solecture.a11y.untitled_headingwas added to #1215 in the same session, as that ticket's own## Interfacessays to.One acceptance criterion was built the other way round, and this is the judgement to check. The ticket asks that while a meditation plays, the play/pause
Buttonbe out of the tab order and the a11y tree. Taken literally that leaves no keyboard path to pause: the only otherhandlePlayPausecall site is the frame's own non-focusable<div onClick>(MeditationPlayer.tsx:671), soinvisiblewould remove the one control a keyboard can reach — and #162's own line says "You can play and pause a meditation … using only the keyboard". So the button keeps its tab stop andfocus-within:makes that stop visible instead, which is what SC 2.4.7 actually asks for. The question thread on the line now carries the recommendation you asked for: A stands, because B drops the only keyboard path to pause (SC 2.1.1, Level A), and a second transport control is its own ticket rather than new UI on this diff.Header's compact bar still usesinvisiblefor the same fade, correctly: every control in it duplicates a link reachable elsewhere, andContentCarousel's arrows are the worked example of withdrawing a stop where the action is genuinely unavailable.Two axe rules are disabled that the ticket expected to run.
page-has-heading-oneandlandmark-one-maincome backincomplete, neverviolations, under jsdom — axe cannot confirm it is looking at a top frame, and it answers that way even when the<h1>and the<main>are present (measured against[email protected], every context form). Leaving them enabled would fail every target forever; countingincompleteas a pass would make them decorative. So the spec counts those two elements itself, per target, which is stronger than the rule — it is whymeditationfails the moment the<h1>goes. Every otherincompleteresult does count as a finding, and that is what caught theAvatardefect.The
Headingatom gained one prop, and three callers stopped opening their own element.LayoutCard,ColumnandFooterLinkListcarry type classes that predate the atom, andlevelStyleswins on source order over a caller's own —styleAsoffers no size matchingtext-lg font-semiboldortext-base font-semibold. SostyleAs="none"emits no type classes at all, and the three keep their class lists while the element, and therefore the heading level, goes back to the atom.TechniqueCard's<Heading level="h3" styleAs="h5">stays the pattern wherever the atom's own sizes are what is wanted.pnpm add -D axe-corewas refused by this environment's command policy, twice. The dependency is declared inpackage.jsonand installed withpnpm install, which is the same result through two permitted steps;pnpm-lock.yamlis the installer's own output, not hand-edited.Detail
Why the gate runs axe over
documentand notdocument.body. Over a fragment axe silently skips every page-level rule —region,bypassand the two above — so a fragment-scoped run reported nothing about them and would have passed a page with no landmarks at all.Why the fixtures render the real organisms. Three of the four defects this gate exists for live in the header and the footer.
PageTemplate.test.tsxandLayoutChrome.test.tsxstub those organisms, correctly for what they test; the gate stubs only vike'suseData,useConfigandClientOnly, so the realHeader, the mega dropdown and all threeFooterLinkListnavs render.Fixture pre-mortem.
tests/a11y/fixtures.tsstates, per fixture, what it assumes and which file settles it. The atlas one earned its own note the hard way:AtlasContentdispatches ontype, notkind, and an unrecognised discriminator renders nothing — so the first version of that fixture served a/mapwith no heading and the structural check caught it.Why
SkipLinkisfixedrather thanabsolute, atz-60. The two layouts give it different containing blocks —LayoutChrome's root takesrelativeonly under a lead splash — andLayoutMap's root setsoverflow-hidden, which would clip an absolute child.z-50is the top of the scale in use and belongs to the sticky nav, which is painted later in DOM order, so the link needs one step above it. The focused padding stands in fortouch-target, whosemin-heightwould fightsr-only's 1px box. Its focused text istext-fg, nottext-primary:teal-600reads about 3.7:1 over the white band, andcolor-contrastis off in the gate.Why the skip link moves focus itself. Vike's client router intercepts a hash click and only scrolls, so the browser's own fragment behaviour never runs and focus would stay on the link — which is the whole point of the control.
<main>already carries thetabIndex={-1}that lets a script focus it.Review.
/code-review highover the whole branch; thepr-review-toolkitplugin is not installed here, so that plus the/simplifypass is what ran. It returned five findings and all five were acted on: the play/pause tab stop, theDropdownnon-focusable trigger, the untitled lead splash, a broken relative doc link, and the vike hash-navigation one it marked plausible. Nothing was dismissed./security-reviewran becausescripts/a11y-summary.mjsandserver/payload-types.tsmatchsecurityReview.triggerPattern; no findings — the new script reads a file the same job wrote and appends markdown toGITHUB_STEP_SUMMARY, with no untrusted input and no shell.comment-lint.mjsadded no finding. The adversarial review that followed raised five more; its own thread carries each answer.Out of scope, from the goal's own
## Not included: the map widget's interior (requested as sydevs/SahajAtlasWeb#432), the video player's own controls (#242 replaces the player outright),color-contrastand brand colours, text links mid-sentence, a real screen reader, and the Ladle playground pluspages/sentry/**. The nav guard inherits the last exclusion for free:sourceFiles()strips stories and specs, which is whyHeaderNavDropdown.stories.tsx's two deliberately unnamed navs do not fail it.Related but not absorbed: #262 (
OrnateTextBox's header over the warm band) and #266 (two headings slugify alike) are accessibility bugs this goal does not cover —color-contrastis excluded by decision, and axe reported no duplicate-id violation on any target. Neither blocks this.Overlap with #275, the open child of #234 adding a mobile menu to the compact header bar. Neither blocks the other; whichever branches second rebases on the first. Both touch
Header.tsx, andtests/guards/nav-landmarks.test.tsis what will make #275's newMobileMenunav carry a name without anyone remembering to ask — it will fail on that nav until the label is added, which is the guard working.Closes #278
Generated by Claude Code