pico icon indicating copy to clipboard operation
pico copied to clipboard

Tooltip support left, right, bottom directions

Open wenkm opened this issue 3 years ago • 1 comments

support directions with placement property.

<a data-tooltip="Tooltip" placement="top">Top</a>
<a data-tooltip="Tooltip" placement="left">Left</a>
<a data-tooltip="Tooltip" placement="bottom">Bottom</a>
<a data-tooltip="Tooltip" placement="right">Right</a>

wenkm avatar Mar 15 '22 08:03 wenkm

@wenkm, Thank you and sorry for the delay. I like the addition.

I would prefer a proper custom property data-placement instead of placement. placement is working, but it's not really valid.

Also, we could use the opportunity the replace the @keyframes camelCase names with a cleaner dash-case and prefix the animation name with tooltip-.

@keyframes tooltip-slide-top { }
@keyframes tooltip-caret-slide-top { }

lucaslarroche avatar May 21 '22 03:05 lucaslarroche

Closed after #211 merge

lucaslarroche avatar Sep 11 '22 08:09 lucaslarroche