Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Reminer about clickable SVG path

A pal discovered a trick with SVG paths. It was not clickable by default!

He found that you must customize it with CSS:

figured it out, for future reference you need to set 
the "pointer-events" property on a path to make it
clickable. There are various options available.

Found a handy little reference here... 

https://webplatform.github.io/docs/css/properties/pointer-events/

This is a reminder for our svelte community while we are chatting. 😁👍

@tcrowe

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.