4 ms·
Okay, I am on a desktop now and why are you using a span with an event listener as a link when an <a href> would do? <span class="text-primary underline ho
by Y-bar 1y ago
Okay, I am on a desktop now and why are you using a span with an event listener as a link when an <a href> would do?
<span class="text-primary underline hover:text-primary-dark transition-colors font-medium text-xs cursor-pointer">Want tickets?</span>
- danthebaker 1y agoGood question! I went this route as it prevents the default navigation behaviour for the event row (which has click handling on the parent element to navigate to an event page and this span overrides that behavior locally).
- Y-bar 1y agoBut it is not accessible, you can’t navigate with keyboard, can’t open in a new tab/window, can’t copy the link. All just because you do not like the navigation?