Closed martinfleis closed 1 year ago
Can repro in Safari, but works as intended in Firefox/Chrome...
Notes for future self:
-webkit-transform
line on its own works just fine, and on top of that, you don't need the -webkit
prefix since Safari has supported the transform
property since 2015 — so just setting transform: ...
works fineposition: fixed
rather than the transform itself, because the issue can be repro'd using only fixed position and without transformposition: fixed
originally was to make sure that the tooltip would appear above the sidebar. (For example, using position: absolute
also allows the tooltip to be positioned above the thing being hovered over; however, it gets clipped at the edges of the sidebar.)LeftSidebar
) having overflow-y: auto
, because if we remove that then it is no longer clipped.
position: fixed
. ... so maybe we should just go back to absolute
.Final verdict: go back to using position: absolute
and make sure (by hand) that the tooltip box does not extend beyond the space occupied by its container.
See the video
https://github.com/alan-turing-institute/demoland-web/assets/36797143/5c6b2285-bf57-42fb-951e-551f049e3e1f