Namespace the subtree theme scopes as .theme-light/.theme-dark: dark: follows the nearest scope, portalled dashboard menus and tooltips restate it

This commit is contained in:
2026-10-15 17:42:59 +02:00
parent 1b5a16f636
commit 44c665b3a5
14 changed files with 78 additions and 47 deletions
+2 -3
View File
@@ -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}