Webdevs: I'm confused about tooltips. In my (mainly desktop) web app I'd often l...
Just van Rossum @justvanrossum@typo.social
Webdevs: I'm confused about tooltips.
In my (mainly desktop) web app I'd often like to add a tooltip to UI items.
I read (but did not fully understand) that the "title" attribute is bad for accessibility. Because of that, I added a custom pure CSS-based tooltip mechanism. This is nice because I can style it, and is it not nice because it is finnicky and suffers from clipping (by the window or parent elements). It seems I just reimplemented the "title" attribute, but badly.
I'm considering removing the custom CSS solution and just use the "title" attribute.
Should I? Halp?