Skip to content

Commit d2896c5

Browse files
committed
feat: add node hover stroke color
1 parent 4a604ca commit d2896c5

File tree

1 file changed

+6
-0
lines changed
  • src/features/editor/views/GraphView/CustomNode

1 file changed

+6
-0
lines changed

src/features/editor/views/GraphView/CustomNode/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ const CustomNodeWrapper = (nodeProps: NodeProps<NodeData["data"]>) => {
4141
onClick={handleNodeClick as any}
4242
animated={false}
4343
label={null as any}
44+
onEnter={ev => {
45+
ev.currentTarget.style.stroke = "#3B82F6";
46+
}}
47+
onLeave={ev => {
48+
ev.currentTarget.style.stroke = colorScheme === "dark" ? "#424242" : "#BCBEC0";
49+
}}
4450
style={{
4551
fill: colorScheme === "dark" ? "#292929" : "#ffffff",
4652
stroke: colorScheme === "dark" ? "#424242" : "#BCBEC0",

0 commit comments

Comments
 (0)