Post

Fancy tooltips that use popover and anchor positioning are great. But sometimes all you need is a trustworthy title HTML attribute for a text-only tooltip. 😭 Only problem is: it can't be styled! Do you want these tooltips to be stylable? Maybe with a ::tooltip pseudo. Let me know your use cases!

I guess this would be nice for simple cases, but title tooltips have a too long hover delay, can’t be programmatically shown, and don’t support [non-interactive] HTML. So for most implementations, I’m still reaching for a component.

Most common case is probably icon buttons, as it gives users desktop more confidence in what they're about to click. My biggest gripe about title is a) style and b) show delay. Programmatic use cases and non-interactive HTML content can probably be handled fine with a popover, bth.

Yeah, that's where I draw the line too. Anything more complicated than a single line string probably works better with a popover. Thanks for the use case about icon buttons.

0 reposts1 like

No replies yet.