Skip to content

fix(website): docs polish 3/3 — a11y and interaction - #865

Merged
blove merged 2 commits into
mainfrom
blove/docs-polish-3-a11y
Aug 30, 2026
Merged

fix(website): docs polish 3/3 — a11y and interaction#865
blove merged 2 commits into
mainfrom
blove/docs-polish-3-a11y

Conversation

@blove

@blove blove commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

What

PR 3 of 3 — the a11y + interaction third of the docs polish arc (plan · findings §6–§7). This PR closes the arc.

Every behavior below was driven and verified in a live browser, not assumed:

control before verified after
DocsSearch ⌘K-only, no dialog semantics, no trap, no mobile entry role=dialog + aria-modal; Tab trapped; combobox + listbox + aria-activedescendant; Escape closes and restores focus to the opener; selected option scrolls into view; a Search entry in the mobile nav opens it
PageActions menu with no keyboard nav, no item states, 32px target first item focused on open; Arrow/Home/End rove (measured: ArrowDown → "Open in ChatGPT"); Escape → focus back on trigger; hover/focus states; 44px hit area via inset:-6px pseudo
mdx Tabs bare buttons full ARIA tabs pattern mirroring ui/TabGroup — ArrowRight measured flipping aria-selected and roving tabindex to [-1, 0]; scrollable bar
heading anchors display:none under 768px — no deep links from phones inline after the heading at 0.35 opacity
focus rings none anywhere in docs chrome one shared :focus-visible ring (--shadow-focus) across 14 control classes
smooth scroll unconditional wrapped in prefers-reduced-motion: no-preference

Gates: nx test website fully green, 0 lint errors, prod build green.

The arc, closed

Original review (2026-08-29) → findings audit → Project 1 tokens (#845) → Project 2 substrate (#848#858) → Project 3 polish (#861, #863, this). Every measured defect in the audit is now fixed or explicitly deferred (§10 font unification — its own decision; toast width — logged).

🤖 Generated with Claude Code

@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview Aug 30, 2026 1:56am

Request Review

@blove
blove enabled auto-merge (squash) August 30, 2026 01:51
@github-actions

github-actions Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Claude finished @blove's task in 0s —— View job


I'll analyze this and get back to you.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

The final third of the docs polish arc (findings §6, §7). Every behavior
verified interactively in a live browser.

- DocsSearch becomes a real dialog: role=dialog + aria-modal, focus
  remembered on open and restored on close, Tab trapped (the combobox input
  is the only tab stop; options are arrow-key territory), input is a
  combobox with aria-activedescendant over a listbox of options, and the
  keyboard-selected option scrolls into view. Phones finally get a way in:
  a Search docs entry in the mobile nav's docs panel (it was Cmd-K-only,
  with the trigger in the desktop-only sidebar).
- PageActions is a real menu: first item focused on open, ArrowUp/Down/
  Home/End rove, Escape closes and restores the trigger, and items gain
  hover/focus states (they had none).
- mdx Tabs gets the full ARIA tabs pattern mirroring ui/TabGroup (which
  already had it): roles, roving tabindex, arrow-key selection, labelled
  panel — plus a horizontally scrollable tab bar on narrow screens.
- One shared :focus-visible ring across the docs chrome (nav links, crumbs,
  TOC, sidebar controls, menu, search results, tabs, copy buttons, heading
  anchors) — none had any focus affordance.
- Heading anchors are visible on touch (inline after the heading at 0.35
  opacity) instead of display:none — phones could not copy a deep link.
- 44px touch targets for the 32px actions trigger and 28px code-copy button
  via inset pseudo hit areas, no visual growth (WCAG 2.5.8).
- scroll-behavior:smooth now respects prefers-reduced-motion.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@blove
blove force-pushed the blove/docs-polish-3-a11y branch from f8ad265 to 7ad94a9 Compare August 30, 2026 01:52
@github-actions

github-actions Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Claude finished @blove's task in 0s —— View job


I'll analyze this and get back to you.

@github-actions

github-actions Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Claude finished @blove's task in 0s —— View job


I'll analyze this and get back to you.

@blove
blove merged commit c4d0057 into main Aug 30, 2026
6 checks passed
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