Skip to content

label style on an edge like hover in css? #238

Answered by bcakmakoglu
Yeenyeong asked this question in Q&A
Discussion options

You must be logged in to vote

Can you give me an example?
You're using the EdgeText component in a custom edge? is that right?

You can either handle mouseover events like any other element

<EdgeText @mouseenter="onMouseEnter" @mouseleave="onMouseLeave" />

or use css like this for example:

 .vue-flow__edge-textwrapper:hover .vue-flow__edge-text {
    fill: red;
  }

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Yeenyeong
Comment options

@bcakmakoglu
Comment options

@Yeenyeong
Comment options

Answer selected by Yeenyeong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #237 on July 21, 2022 14:52.