Files
sitekit/test
9122b6b6c6 fix(nav): the shared chrome shipped two defects no consumer could fix (#8)
A shared renderer is the one place where a mistake is not one bug in one repo
but the same bug on every site that installs it — and unfixable downstream,
because a consumer cannot patch markup it does not own. Two shipped:

1. Nav links were `px-2 py-1` on `text-xs`, roughly a 28px target. That is a
   fiddly thing to hit on a phone and below the 44px floor the rest of the
   fleet holds (fleetcrown enforces it centrally; kivvi and wild-spirit meet
   it explicitly). Now `inline-flex min-h-11 items-center`.

2. The package defined no focus style at all. A consumer's CSS reset can
   remove the user-agent ring, and nothing here replaced it, so keyboard
   users could lose their visible position in the nav on every site that
   installs this. Both the nav links and the wordmark now carry
   `focus-visible:outline-2 outline-offset-2 outline-accent` — a semantic
   class, so it stays the consumer's colour, per this package's no-tokens rule.

The masthead does NOT get taller. Its own comment warns that wrapping the nav
"makes a sticky masthead eat a third of a phone screen", so the row pays for
the bigger targets out of its own padding: py-4 becomes py-2, and 44px items
land the header at the height it already had.

Five rendered tests, asserting markup rather than source and importing by
package name so a broken exports map fails here rather than in a consumer.
Four fail against the previous renderers; the fifth covers `aria-current`,
which already worked and is guarded so a refactor of these classes cannot
quietly drop it.

Both live consumers inherit this: substrata (v0.1.1) and camille-boulangerie
(v0.2.0) are also version-drifted from each other, so both move to v0.3.0.

Found by a fleet-wide navigation audit across 20 repos, where this was the
only defect that multiplies.


Claude-Session: https://claude.ai/code/session_01XeELB8b3N4JrT2asYL9WvE

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-31 10:20:30 +02:00
..