github-corners
github-corners copied to clipboard
The hitbox for the link is a square, not a triangle


I can confirm this with https://chingu-coders.github.io/owl-24/. I'm going to look in the code to see if I can do anything (might not be able to do anything, since I am pretty new with JS)
Ok I think I can pinpoint this issue down to this line of code:
<svg width="80" height="80"
This is definitely where the hitbox oversteps.
https://nntin.github.io/discord-logo/
I've come up with a solution but it is not an elegant one. I applied the link to the path element that has the shape of a triangle. Disabled pointer events on the svg element and re-enabled pointer events on the triangle.
06.01.2018 - edit: https://jsfiddle.net/hgjrrt5k/