svooltip
svooltip copied to clipboard
Request: Automatically add data-placement when auto-placement causes tooltip to move
I have some CSS classes as follows:
.svooltip[data-placement^='top'] .svooltip-arrow {
@apply border-b border-r;
}
.svooltip[data-placement^='bottom'] .svooltip-arrow {
@apply border-t border-l;
}
But the issue is, they are not applied when the tooltip is overflowing and changes position, so I end up getting the incorrect classes for the position that it's in.
Example:
Correct placement:
When it overflows:
Notice the arrow border