vitamin-web: bug(@vtmn/react): `VtmnTooltip` is cropped
Describe the bug
- Cropped tooltip:

_Originally posted by @Charles-Babin in https://github.com/dktunited/mybusiness/issues/2328#issuecomment-1030169452_
Steps to reproduce
- have a container div wrapping a
element, set a
max-height+overflow: autoso the table can be scrolled inside the container- have a tooltip anywhere inside that table near the container div’s borders
- hover the tooltip and see that it’s cropped
Expected behavior
not being cropped this might not be feasible using just css, usually solved using Portal
Browsers affected
- ChromeVersion affected
“@vtmn/css-tooltip”: “^0.6.4”,
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (15 by maintainers)
Most upvoted comments
Hi @NourcheneBenali, unfortunately not yet. As it is discussed here:
We are currently working on new ways to help Vitamin users contribute and consume our components though, including a rework of some of this components. But for now we can only leave this issue open and remain available if anyone wishes to propose a solution.
Sorry about that!
hey @lauthieb , kinda hard to reproduce without a codesandbox/stackblitz or at least the story commited
a quick google search leads to:
looking at the current state of the PR this looks like this won’t work as expected as btw, you still need a positioning library in your implementation like here or here
im not aware of a way to bypass an overflow:hidden parent in pure css so, like I said in my original post, this should probably be solved using portal as demonstrated in the repo linked just above
thanks @astahmer for reporting this. @GaspardMathon is it possible for you to check this asap? Thanks a lot.