Because the download button uses transform: translateY(2px) to give it a "push" effect when pressed, putting the cursor at the very top of the button and pressing will not trigger <a href="blah"> even though, visually, the button is being pressed.
Steps to Reproduce
Move cursor anywhere at the top of the button, but not outside of it.
Press it.
Press it again and again and again all you want.
Expected behavior:
The <a> tag of the button class should execute its href value.
Actual behavior:
Nothing happens. Though the button looks like it's being pressed.
Reproduces how often:
Every instance.
Versions
All latest versions of major desktop and mobile browsers produce this issue.
Additional Information
The solution is to simply transparently fill the gap created by the 2px Y translation of the button:
Description
Because the download button uses
transform: translateY(2px)
to give it a "push" effect when pressed, putting the cursor at the very top of the button and pressing will not trigger<a href="blah">
even though, visually, the button is being pressed.Steps to Reproduce
Expected behavior: The
<a>
tag of the button class should execute itshref
value.Actual behavior: Nothing happens. Though the button looks like it's being pressed.
Reproduces how often: Every instance.
Versions
All latest versions of major desktop and mobile browsers produce this issue.
Additional Information
The solution is to simply transparently fill the gap created by the 2px Y translation of the button: