Created
October 11, 2018 17:49
-
-
Save schalkneethling/d8f0c61501c7b3aeec835d274fe1b234 to your computer and use it in GitHub Desktop.
Snippet used in Preventing SVG from becoming the event.target
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.local-anchor .icon { | |
color: #3d7e9a; | |
width: 16px; | |
height: 16px; | |
/* ensure svg will never be the target of mouse event */ | |
pointer-events: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment