refactor(css-vars): prefix with xy and fix bgColor prop closes #3669

This commit is contained in:
moklick
2023-11-28 16:35:44 +01:00
parent e9eb0ed516
commit a1e585fdcc
11 changed files with 144 additions and 135 deletions
@@ -15,6 +15,8 @@ import {
Position,
} from '@xyflow/react';
import './style.css';
const nodeDefaults = {
sourcePosition: Position.Right,
targetPosition: Position.Left,
@@ -85,7 +85,7 @@
{nodes}
{edges}
{nodeTypes}
style="--background-color: {$bgColor}"
style="--xy-background-color: {$bgColor}"
fitView
on:connect={onConnect}
>