Repository navigation
fix(templates): reserve a strip so the exit pill never covers a concept's footer - #404
Conversation
…pt's footer
The preview-exit affordance is `position: fixed`. Mid-page that is harmless —
scroll on and the content moves out from under it. At the END of the document
there is no scroll left, so whatever it covers there is covered permanently,
and on five of the ten concepts that was the footer's attribution line
("Composed from open-source Payload blocks"). #398 moved the pill out of the
mobile content column; this is the other half, and it applies at both widths.
preview-exit-clearance.css reserves a strip at the bottom of the last band for
the pill to land on. Every shell ends in exactly one <footer>, so one rule
covers all ten concepts with no per-shell edits, scoped with :has() to the
routes that render the pill.
The strip is a transparent bottom BORDER rather than padding or a spacer child:
padding can only replace what each footer already sets, which would quietly
restyle ten hand-tuned footers; a ::after spacer becomes a flex/grid item in
the footers laid out that way and would land in a column instead of at the
end; a border is additive, layout-neutral, and `background-clip: border-box`
paints the footer's own background across it, so no seam appears. Verified on
saas-launch (footer sets tokens only) and portfolio-solo (sets no background at
all) as well as the eight that paint their own.
The e2e guard measures TEXT NODE rects, not element boxes — a <p> box can
extend under the pill while its rendered lines stop short, and the reverse. It
scrolls with `behavior: instant` because globals.css sets `scroll-behavior:
smooth` on html: a plain scrollTo animates, and the first version of this test
measured the page still at the top and reported hero badges as covered. With
the clearance removed it fails naming the exact footer lines on all five
affected concepts, so it is not vacuous. The visual baselines cannot stand in
for it — they would only show that the page height changed, and a reviewer
re-minting them would accept the regression.
All 100 darwin baselines re-minted in production server mode; each grew by
exactly 72px (4.5rem) at unchanged width, confirming the strip is the only
change.
Co-Authored-By: Claude Opus 5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 34 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (200)
📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…r adoption, template a11y (#409) Brings main level with dev (137 commits). Headline items: - the component wall no longer crops blocks: per-breakpoint zoom pins the twins' inner layout width at 1280px (#392), and the 640-1023px band gets a 256px frame plus a widened fade (#399). Production was cutting content-quote, content-feature-media and content-feature-split by 88/79/78px on a tablet; measured on the live site, not inferred. Three viewport tests now assert the fit so a curated-at-one-width regression cannot recur silently. - prettier is adopted: config matched to the house style (#402), the tree formatted, and format:check gated in test:release and the CI lint step (#408). - template a11y and layout fixes (#394, #398, #404), consent gate split by provider (#400), axe now waits for the consent banner (#405), CodeQL double-escaping fix (#391). Tree is identical to dev by construction: branched from dev, reparented onto main, so the diff is exactly the main..dev delta with no squash-divergence conflicts.
The other half of #398. That one moved the preview-exit pill out of the mobile content column; this fixes the case where the overlap is permanent.
Why it matters
The pill is
position: fixed. Mid-page that is harmless — scroll on and the content moves out from under it. At the end of the document there is no scroll left, so whatever it covers there is covered for good. On five of the ten concepts that was the footer's attribution line, "Composed from open-source Payload blocks". It applied at both widths, not just mobile.The fix
preview-exit-clearance.cssreserves a strip at the bottom of the last band for the pill to land on. Every shell ends in exactly one<footer>, so a single rule covers all ten concepts with no per-shell edits, scoped with:has()to the routes that render the pill.The strip is a transparent bottom border, not padding and not a spacer child:
::afterspacer becomes a flex/grid item in the footers laid out that way, landing in a column instead of at the end;background-clip: border-box(the default, unoverridden here) paints the footer's own background across it — so no seam.I checked the seam on the two footers where it could have gone wrong:
saas-launch, whose footer only redefines tokens, andportfolio-solo, which sets no background at all. Both are clean, as are the eight that paint their own.The guard
templates.e2e.spec.tswalks all ten concepts at 390, scrolls to the document end, and asserts nothing is under the pill. Two details it needs to be correct:<p>box can extend under the pill while its rendered lines stop short, and the reverse;behavior: 'instant', becauseglobals.csssetsscroll-behavior: smoothonhtml. The first version animated, measured the page still at the top, and reported hero badges as covered.With the clearance removed it fails naming the exact footer lines on all five affected concepts, so it is not vacuous. The visual baselines can't stand in for it — they'd only show that the page height changed, and a reviewer re-minting them would accept the regression.
Baselines
All 200 re-minted, both platforms, same PR:
visual-baselines(run 30351874799), merged as test(chore): mint Linux visual baselines #403 — exactly 100 files, 50 desktop + 50 mobile.Audited by decoding every rewritten darwin file against its committed version: all 100 grew by exactly 72px (4.5rem) at unchanged width, confirming the reserved strip is the only change.
git rebasesilently dropped the binary-only linux baseline commit —patch-idignores binary content, so it collides with the other baseline mints already ondev. It reportedRebasing (1/1)and left darwin updated with linux stale, which is the half-mintCONTRIBUTING.mdwarns about and which no check catches. Both platforms are now folded into the one commit so it is never binary-only; verify by blob, not bygit log.Verification
pnpm test:releasegreen on the final rebased tree — batches 44 / 69 / 102 / 43 / 132, int 379 passed. The 102 is the visual suite against the fresh baselines; the 132 includes the new guard.🤖 Generated with Claude Code