Skip to content

Balance API card spacing and preserve contents scroll - #149

Merged
tony merged 2 commits into
mainfrom
docs-p0-wave-20261014
Oct 17, 2026
Merged

tony merged 2 commits into
mainfrom
docs-p0-wave-20261014

Conversation

@tony

@tony tony commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

API cards that begin with Description or Examples add the heading margin above the card padding. Let the card padding own that first edge while preserving later headings and compact metadata spacing.

The compact contents drawer now moves and restores keyboard focus without scrolling the document. This keeps its existing focus behavior while avoiding a focus-induced page jump.

Validation: the spacing regressions pass; the drawer fixture passes 58/58, including two new cases that fail before the change. The complete source outer loop passes in 49.04 seconds with the fresh-source browser sample on the shared preview port. A cold isolated worktree reached the unchanged 60-second deadline; that result is retained. Assembled-output checks are excluded by the source-only loop. Full browser recollapse and toolbar-occlusion findings remain open; no production closure is claimed.

tony added 2 commits October 16, 2026 23:50
Let declaration padding own the first Description or Examples edge.
Preserve later headings, prose, examples and compact metadata spacing.
why: Moving focus into or back from the contents drawer should preserve
     the document reading position, as the navigation drawer already does.

what:
- Request preventScroll for both contents drawer focus transfers.
- Check the real hub and MCP drawer transfers in the existing fixture.
@tony
tony deployed to docs-preview October 17, 2026 07:57 — with GitHub Actions Active
@tony
tony merged commit 6ae9679 into main Oct 17, 2026
3 checks passed
@tony
tony deleted the docs-p0-wave-20261014 branch October 17, 2026 08:04
@tony
tony deployed to docs-preview-cleanup October 17, 2026 08:27 — with GitHub Actions Active

This branch was successfully deployed

2 active deployments
docs-preview-cleanup — 8f304904 Deployed Oct 17, 2026 by tony via cleanup #133
docs-preview — 8f304904 Deployed Oct 17, 2026 by tony via publish-preview / publish #767
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