chinchang / hint.css

A CSS only tooltip library for your lovely websites.

Home Page:https://kushagra.dev/lab/hint/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to show markup inside tooltips

chinchang opened this issue · comments

Right now hint.css tooltips can only show normal text with unicode characters. It cannot render HTML because of no support in content property.

HTML tooltips are only possible when tooltips are not made using pseudo elements. So the library could have an option to let user define their own element in the DOM which is rendered as a tooltip.

Something like:

<div class="hint--top">
A tooltip shows on me.
<div data-hint>I am <strong>rendered</strong> as tooltip with HTML</div>
</div>

@chinchang is it still opened? I could work on this.

@janydrozd Yes, it is open. PR is welcome :)