Is it possible to style edge hover? #972
-
I have some overlapping edges, and I think it would be helpful to use hover effects to help resolve overlapping edges. However, it seems that all edges are grouped into a single element, and the :hover event is triggered on the parent for all edges at once, rather than the particular edge that is hovered over. Is there any way to resolve this with CSS? The only solution I can think of would be to restructure the design to use separate SVGs for each edge rather than a single SVG for all. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This code highlights all edges when any is hovered:
This code, on the other hand, does not work, because individual edges don't receive hover events:
|
Beta Was this translation helpful? Give feedback.
This works fine for me 🤔
Here's a sandbox.