Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

feat: add node hover stroke color

AykutSaracd2896c5ec1f3
diff --git a/src/features/editor/views/GraphView/CustomNode/index.tsx b/src/features/editor/views/GraphView/CustomNode/index.tsx
index dc04adf2..fed88b83 100644
--- a/src/features/editor/views/GraphView/CustomNode/index.tsx
+++ b/src/features/editor/views/GraphView/CustomNode/index.tsx
@@ -41,6 +41,12 @@ const CustomNodeWrapper = (nodeProps: NodeProps<NodeData["data"]>) => {
onClick={handleNodeClick as any}
animated={false}
label={null as any}
+ onEnter={ev => {
+ ev.currentTarget.style.stroke = "#3B82F6";
+ }}
+ onLeave={ev => {
+ ev.currentTarget.style.stroke = colorScheme === "dark" ? "#424242" : "#BCBEC0";
+ }}
style={{
fill: colorScheme === "dark" ? "#292929" : "#ffffff",
stroke: colorScheme === "dark" ? "#424242" : "#BCBEC0",