fixed focused, selectable css

This commit is contained in:
peterkogo
2024-01-18 15:50:21 +01:00
parent b6b3822787
commit e0d7dbe8a1
2 changed files with 3 additions and 2 deletions
@@ -186,6 +186,7 @@ export function EdgeWrapper({
animated: edge.animated, animated: edge.animated,
inactive: !isSelectable && !onClick, inactive: !isSelectable && !onClick,
updating: updateHover, updating: updateHover,
selectable: isSelectable,
}, },
])} ])}
onClick={onEdgeClick} onClick={onEdgeClick}
+2 -2
View File
@@ -139,8 +139,8 @@
} }
&.selected .xy-flow__edge-path, &.selected .xy-flow__edge-path,
&:focus .xy-flow__edge-path, &.selectable:focus .xy-flow__edge-path,
&:focus-visible .xy-flow__edge-path { &.selectable:focus-visible .xy-flow__edge-path {
stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default)); stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));
} }