Skip to content

Commit 5a3fc0c

Browse files
committed
feat(useEdgeConnection): update edge colors to match node types
Add cyan color for sleep node edges to maintain visual consistency with node types
1 parent 2296dd3 commit 5a3fc0c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/src/hooks/useEdgeConnection.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ export const useEdgeConnection = (edges, updateEdges, setHistoryState, nodes, wo
3939
} else if (sourceNode?.type === 'start') {
4040
edgeType = 'simple';
4141
edgeClass = 'edge-simple edge-animated';
42-
strokeColor = '#10b981'; // success color
42+
strokeColor = '#3b82f6'; // blue color matching start node
43+
} else if (sourceNode?.type === 'sleep') {
44+
edgeType = 'simple';
45+
edgeClass = 'edge-simple edge-animated';
46+
strokeColor = '#06b6d4'; // cyan color matching sleep node
4347
}
4448

4549
// Create styled edge with proper configuration

0 commit comments

Comments
 (0)