-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Tooltip and DefinitionTooltips don't work well in tables with sticky headers #14428
Comments
@valente Thanks for reporting and providing the stackblitz, though I don't see
We've been considering a much more comprehensive fix for issues like this in #14139. |
First, updates from my side: I found a workaround by adding a zindex declaration to the sticky column. Not sure why this works but it seems to "revert" the effect of adding the tooltip. About your response: this report was about a sticky column, not a sticky row. I think you referred to a sticky row/header. Thank you for sharing the existence of a more comprehensive solution. I'm happy to see that, since I also continously face popover/tooltips issues in carbon-react. In short, I consider this worked-around on my side, but I'm not sure this issue should be closed. Not sure adding a tooltip should have had this effect in the first place. |
Here's a fork with the fix https://stackblitz.com/edit/github-737hdm-mcucbi?file=src%2Findex.scss |
@valente thanks for the additional information and the workaround. I agree we should ensure tooltips are compatible within |
Fixed in #14493 |
Package
@carbon/react
Browser
Chrome
Package version
1.35.0
React version
18.2.0
Description
TooltipDefinition & Tooltips break tables with sticky elements, making the trigger elements fly over sticked headers.
Reproduction/example
https://stackblitz.com/edit/github-737hdm-zg2ygf
Steps to reproduce
horizontally scroll the table
Suggested Severity
None
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: