Skip to content

fix: Sign In button always visible in both light and dark modes#182

Closed
texture-fleet-agent[bot] wants to merge 1 commit intomainfrom
anvil/fix-signin-visibility-v2
Closed

fix: Sign In button always visible in both light and dark modes#182
texture-fleet-agent[bot] wants to merge 1 commit intomainfrom
anvil/fix-signin-visibility-v2

Conversation

@texture-fleet-agent
Copy link
Copy Markdown
Contributor

Problem

Sign In button was completely missing from mobile nav — not a contrast issue, the button was absent from the DOM entirely. Root cause: <SignInButton> from @clerk/nextjs renders nothing until Clerk fully initializes. On mobile where Clerk can be slow, the button never appeared.

Fix

Replaced all <SignInButton mode="modal"> wrappers with plain <Link href="/sign-in">. The /sign-in route already exists in the app, so this works immediately on page load — zero dependency on Clerk initialization.

Changes

  • components/TopBar.tsx: Replace 3x SignInButtonLink (desktop nav, mobile top-bar, mobile drawer)
  • app/globals.css: Add text-decoration: none to button-styled link classes
  • Remove unused SignInButton import

Works in both light and dark modes, renders immediately.

Co-authored-by: Nicholas Brown nicholasalanbrown@gmail.com

SignInButton from @clerk/nextjs renders nothing until Clerk fully
initializes. On mobile this meant the Sign In button was completely
absent from the DOM — not a contrast issue, just missing.

- Replace all SignInButton wrappers with plain <Link href='/sign-in'>
- Works immediately on page load in both light and dark modes
- No dependency on Clerk initialization timing
- Add text-decoration: none to button-styled links
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 26, 2026

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

Project Deployment Actions Updated (UTC)
commongrid Ready Ready Preview, Comment Apr 26, 2026 0:55am

Request Review

@texture-fleet-agent
Copy link
Copy Markdown
Contributor Author

Closing — superseded by #181 (merged)

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