Namespace the subtree theme scopes as .theme-light/.theme-dark: dark: follows the nearest scope, portalled dashboard menus and tooltips restate it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
@@ -1284,9 +1284,8 @@ function FlowEditorInner({
|
||||
nodeTypes={nodeTypes}
|
||||
edgeTypes={edgeTypes}
|
||||
proOptions={{ hideAttribution: true }}
|
||||
// React Flow stamps this on the wrapper as a class, and the app's own
|
||||
// token scopes are named `.light` / `.dark` (index.css) — so leaving it
|
||||
// unset re-themes the whole canvas to light inside a dark shell.
|
||||
// React Flow's own defaults, for whatever flow.css does not route
|
||||
// through the tokens, follow the theme too.
|
||||
colorMode={resolvedTheme}
|
||||
fitView
|
||||
fitViewOptions={FIT_VIEW}
|
||||
|
||||
Reference in New Issue
Block a user