Skip to content

fix(mapgen-studio): apply flash guard to :root for between-navigations clear color#1640

Merged
mateicanavra merged 1 commit into
mainfrom
design/flash-fix
Jun 12, 2026
Merged

fix(mapgen-studio): apply flash guard to :root for between-navigations clear color#1640
mateicanavra merged 1 commit into
mainfrom
design/flash-fix

Conversation

@mateicanavra

Copy link
Copy Markdown
Owner

Fixes the bright white flash that appeared when refreshing the studio in dark mode.

The browser's between-navigations clear color is determined by the root element's background and color-scheme, not <body>. The existing flash guard only styled body, leaving a window from navigation commit until body paint where the root had background: transparent and color-scheme: normal — causing every paintable moment in that gap to clear to white.

The fix adds :root { color-scheme: dark; background: #0d0d11; } to the inline flash guard so the dark background is established before any paint opportunity (~8ms vs ~138ms previously). The theme script's light-mode branch is updated symmetrically to also override :root with color-scheme: light and the light background, so light users receive the same guarantee.

This was referenced Jun 12, 2026
@github-actions

Copy link
Copy Markdown

Railway preview (MapGen Studio): not provisioned for this PR.

Policy (Graphite stacks): previews are created only for the top-of-stack PR by default.

  • To force a preview for this PR: add label railway-preview
  • To suppress a preview: add label no-railway-preview

Debug: {"isClosed":false,"isFork":false,"suppress":false,"force":false,"isTopOfStack":false,"hasToken":true,"draft":false}

mateicanavra commented Jun 12, 2026

Copy link
Copy Markdown
Owner Author

Merge activity

  • Jun 12, 8:50 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 12, 10:03 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jun 12, 10:04 PM UTC: @mateicanavra merged this pull request with Graphite.

@mateicanavra
mateicanavra changed the base branch from design/prerun-cursor to graphite-base/1640 June 12, 2026 22:00
@mateicanavra
mateicanavra changed the base branch from graphite-base/1640 to main June 12, 2026 22:02
@mateicanavra
mateicanavra merged commit c0d8f45 into main Jun 12, 2026
This was referenced Jun 12, 2026
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