Skip to content

fix(web): dashboard favicon follows light/dark theme - #218

Merged
stewartjarod merged 1 commit into
mainfrom
fix/dashboard-favicon-dark-mode
Oct 28, 2026
Merged

stewartjarod merged 1 commit into
mainfrom
fix/dashboard-favicon-dark-mode

Conversation

@stewartjarod

Copy link
Copy Markdown
Contributor

Problem

In dark-mode browsers the dashboard tab icon is a black W on a dark tab bar, so it's invisible.

Cause

apps/web/src/app/favicon.ico (black W) triggers Next's file convention, which emits an unconditional <link rel="icon" href="/favicon.ico"> ahead of the prefers-color-scheme icons declared in layout.tsx. Browsers pick the unconditional one. Confirmed on production: app.wraps.dev/sign-in serves the .ico link first; wraps.dev has no such file and is already correct.

Fix

Delete apps/web/src/app/favicon.ico. The head now only contains favicon-light.png / favicon-dark.png with media queries. public/favicon.ico is kept as the fallback for direct /favicon.ico requests.

Verify

After deploy, curl -sL https://app.wraps.dev/sign-in | grep -o '<link[^>]*rel="icon"[^>]*>' should no longer show /favicon.ico?favicon…. Not run locally. Safari ignores media on icon links, so it won't follow the theme.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GxJAQPrkVPBHgARDeX6HPX

…heme

Next's app/favicon.ico file convention emitted an unconditional
<link rel="icon" href="/favicon.ico"> ahead of the prefers-color-scheme
icons in layout.tsx, so dark-mode browsers showed a black W on black.
Removing it leaves only the media-conditioned favicon-light/dark links.
public/favicon.ico stays as the fallback for direct /favicon.ico requests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxJAQPrkVPBHgARDeX6HPX
@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
wraps-web Ready Ready Preview Oct 28, 2026 6:13pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
wraps-website Skipped Skipped Oct 28, 2026 6:13pm UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – wraps-website October 28, 2026 18:11 Inactive
@stewartjarod
stewartjarod merged commit bb23e60 into main Oct 28, 2026
18 of 19 checks passed
@stewartjarod
stewartjarod deleted the fix/dashboard-favicon-dark-mode branch October 28, 2026 18:33

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – wraps-web — 769aa9c3 Deployed Oct 28, 2026 by vercel[bot]
Preview – wraps-website — 769aa9c3 Deployed Oct 28, 2026 by vercel[bot]
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