Replies: 4 comments 5 replies
-
@3goats I don't believe SVG are flagged as interactive elements, so you'll likely need to wrap them in a button. Much like you have above. Just remove the styling from the button yourself if you do not wish to display this. And I might recommend adding If the SVG interferes with your ability to interact with the button, you can use CSS to disable pointer events on the SVG itself. With Tailwind this would be via the pointer-events-none utility class. |
Beta Was this translation helpful? Give feedback.
-
Sorry not sure that I understand. I have this in my SVG:
Basically, I want to programatically add the |
Beta Was this translation helpful? Give feedback.
-
This code allows me to bind a click event listener and some SVG manipulation to each of the circles:
However, I also need to bind a popup to the id. |
Beta Was this translation helpful? Give feedback.
-
I can add button role to my SVG so now it behave more like a button. e.g.
However, it doesn't invoke/show the popup. |
Beta Was this translation helpful? Give feedback.
-
Hi I'm experimenting with the floating-ui popups and have this working nicely:
However I need to add the on:click and use:popup to an existing inline SVG element. I'm struggling to work out how to do this. Is this possible and if so how ?
Thanks for the very cool components.
Beta Was this translation helpful? Give feedback.
All reactions