Hey Ryan, we’ve been working through the fix and trying to think of use cases for allowing tooltip on links. Can you share your use case here? We’re going to get UX to weigh in on this as well.
Some things to keep in mind. Tooltips should be used sparingly, in my opinion. They hide details that could be important to your users and more importantly they don’t show up at all on mobile devices, this is by design.
@Kyle_Durand Fair point. I ended up not using the tooltip at all in the design I decided on. I was giving additional context about a button/link but decided it wasn’t ideal and there was a better solution. Your points about mobile are good ones.
From a DX perspective, different behaviour of interestFor depending on whether href vs onclick is used is a bit surprising, so I’d at least document this. But then why not just normalise the behaviour? It’s not preventing tooltip use for links as-is – it’s just forcing using javascript to navigate vs links. I understand that under the hood there may be reasons why it is this way (button vs link elements).
I think guidance or a note that tooltips don’t work on mobile (and should be used sparingly – i.e. for “extra” non-essential, but still useful context) on the tooltip doc page is a good idea.