Skip to content

Use transparent, theme-selected browser favicons - #74

Merged
mikeylong merged 1 commit into
mainfrom
codex/transparent-themed-favicons
Oct 15, 2026
Merged

mikeylong merged 1 commit into
mainfrom
codex/transparent-themed-favicons

Conversation

@mikeylong

Copy link
Copy Markdown
Owner

Dark favicon tiles develop a white outline in Safari. Use transparent canonical marks in both browser themes and one typed ICO selected by a synchronous head controller before parsing finishes. Retain published icon URLs as explicit aliases to the current assets.

Validation: focused asset and site tests, real Chromium initial-theme/cardinality/change/no-script cases, deterministic exports, and production build passed. Canonical artwork, headers, sharing cards, and opaque installation icons remain unchanged. Native Safari background and theme-selection controls informed the change; an existing native favicon cache can still retain older processed artwork.

@vercel

vercel Bot commented Oct 15, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
judgmentkit-ai Ready Ready Preview Oct 15, 2026 8:48pm UTC

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T20:50:41.337428Z 0f29980 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0f29980810

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

};
update();
document.head.append(icon);
appearance.addEventListener("change", update);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Fall back to the legacy MediaQueryList listener

On older Safari/WebKit versions that support prefers-color-scheme but expose only MediaQueryList.addListener, this unconditional call throws after installing the initial icon, so later appearance changes never update it. The repository already handles this compatibility case in site/build-site.mjs:6305-6308; use the same addEventListener/addListener fallback here and cover the legacy listener shape in the controller test.

Useful? React with 👍 / 👎.

@mikeylong
mikeylong merged commit 1dfd936 into main Oct 15, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 0f299808 Deployed Oct 15, 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