fix: skip-nav touch-device flash + CORS hardening#27
Merged
Conversation
Skip-nav: gate visibility behind @media (hover: hover) so touch-only devices never show the skip link during Next.js client navigation. Some mobile browsers trigger :focus-visible on programmatic focus, making the previous sr-only + focus-visible:not-sr-only approach insufficient. Centralize styles in globals.css .skip-nav class. CORS: add explicit Access-Control-Allow-Origin: https://paulprae.com to vercel.json catch-all headers, overriding Vercel CDN's default wildcard ACAO on non-API page responses. API routes continue to use dynamic origin matching via proxy.ts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
praeducer
added a commit
that referenced
this pull request
Mar 18, 2026
- human-tasks.md: add pre-merge UAT checklist task for PR #28, rename post-deploy section to cover PRs #27-28, add mobile CTA verification step, bump last-updated date to 2026-03-18 - backlog.md: update reconciliation date and branch to feat/interview-booking-cta, update version bump task to reference PR #28 (currently 0.1.0 → 2.0.0) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@media (hover: hover)so touch-only devices never show the skip link during Next.js client navigation. Some mobile browsers trigger:focus-visibleon programmatic focus, making the previoussr-only + focus-visible:not-sr-onlyapproach insufficient. Centralizes styles inglobals.css .skip-navclass.Access-Control-Allow-Origin: https://paulprae.comtovercel.jsoncatch-all headers, overriding Vercel CDN's default wildcardACAO: *on non-API page responses. API routes continue to use dynamic origin matching viaproxy.ts.Test plan
curl -sI https://paulprae.com | grep access-controlshowshttps://paulprae.com(not*)/api/chatstill returns dynamic origin-matched ACAO header🤖 Generated with Claude Code