fix(mapgen-studio): apply flash guard to :root for between-navigations clear color#1640
Merged
Conversation
This was referenced Jun 12, 2026
refactor(studio): decompose App.tsx non-React corpus into feature modules and shared utilities
#1608
Merged
Merged
Merged
|
Railway preview (MapGen Studio): not provisioned for this PR. Policy (Graphite stacks): previews are created only for the top-of-stack PR by default.
Debug: |
This was referenced Jun 12, 2026
This was referenced Jun 12, 2026
Merged
mateicanavra
force-pushed
the
design/prerun-cursor
branch
from
June 12, 2026 20:44
08bdec8 to
c42a9f1
Compare
mateicanavra
force-pushed
the
design/flash-fix
branch
from
June 12, 2026 20:44
e353eba to
70e46cd
Compare
Owner
Author
Merge activity
|
mateicanavra
changed the base branch from
design/prerun-cursor
to
graphite-base/1640
June 12, 2026 22:00
…paint background + color-scheme
mateicanavra
force-pushed
the
design/flash-fix
branch
from
June 12, 2026 22:02
70e46cd to
df5478d
Compare
This was referenced Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 styledbody, leaving a window from navigation commit until body paint where the root hadbackground: transparentandcolor-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:rootwithcolor-scheme: lightand the light background, so light users receive the same guarantee.