I created an clickable tooltip that disappears when you click outside the card or in the icon, but when i click to show the tooltip and scroll up or down the page, the tooltip card follows. But i want it to be fixed where i opened it.
.tooltip { margin: 0 0.15rem; display: inline-flex; flex-direction: column; align-items: center; icon { color: blue; font-size: 1.0rem; width: 1.0rem; height: 1.0rem; } } I tried position: fixed, but it doesn't work.
Update: the tooltip don't scroll with the page anymore, i used ::ng-deep to access the class and set position: absolute, but its style is wrong.