#How to update marker with css?

1 messages · Page 1 of 1 (latest)

stark spear
#

Hi,
I can't seem to find a way to update the marker color with css only. I want to be able to set the hover and selected colors of the marker using css. Is it possible?

uncut swan
#

With a custom marker inside of a custom edge you could style the marker with css only though and just drop the useState (i just wrote this rather quickly sorry for that ^^)

stark spear
#

Cool workaround of the hover state

#

I will use that for now but if there is a way to do it with CSS only it would be ideal

uncut swan
#

Problem is that the built-in marker tags aren't part of the edge itself so a css only solution probably won't work for them ^^

pure pollen