Skip to content

fix(checkout): take embed iframe color-scheme from the link's theme - #15135

Merged
pieterbeulque merged 1 commit into
mainfrom
claude/kind-dijkstra-j34q9g
Oct 3, 2026
Merged

pieterbeulque merged 1 commit into
mainfrom
claude/kind-dijkstra-j34q9g

Conversation

@pieterbeulque

@pieterbeulque pieterbeulque commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

A checkout link can carry ?theme=dark but be embedded without a theme option, rendering a dark mode page inside an iframe pinned to color-scheme: light. Chromium only keeps a cross-origin iframe transparent when both resolve to the same scheme, so the overlay turned into a solid dark box on every host.

The iframe color-scheme and loader colors now always come from the theme on the final checkout URL, the value the embedded page reads.

Review in cubic

A Checkout Link that already carries ?theme=dark, embedded without a theme
option, rendered a dark page inside an iframe pinned to color-scheme: light.
Chromium only keeps a cross-origin iframe transparent when both resolve to
the same scheme, so the overlay turned into a solid dark box on every host.

The iframe color-scheme and loader colors now come from the theme on the
final checkout URL, the value the embedded page reads.

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

vercel Bot commented Oct 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
orbit Ready Ready Preview Oct 3, 2026 6:21am UTC
polar-test Ready Ready Preview Oct 3, 2026 6:21am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Fixes the embedded checkout iframe and loader color scheme to follow the theme on the final checkout URL, matching the embedded page's resolved theme, with regression tests for both cases.

Re-trigger cubic

@pieterbeulque
pieterbeulque added this pull request to the merge queue Oct 3, 2026
Merged via the queue into main with commit c063d7a Oct 3, 2026
41 of 57 checks passed
@pieterbeulque
pieterbeulque deleted the claude/kind-dijkstra-j34q9g branch October 3, 2026 13:03

This branch was successfully deployed

2 active deployments
Preview – orbit — 334e60ce Deployed Oct 3, 2026 by vercel[bot]
Preview – polar-test — 334e60ce Deployed Oct 3, 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.

3 participants