Skip to content
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 - Components surrounded by Tooltip not visible #9841

Closed
Lucifergene opened this issue Nov 27, 2023 · 1 comment
Closed

Bug - Tooltip - Components surrounded by Tooltip not visible #9841

Lucifergene opened this issue Nov 27, 2023 · 1 comment

Comments

@Lucifergene
Copy link

Lucifergene commented Nov 27, 2023

Describe the problem
When I am using the Tooltip around a component, its creating a div element with the style display: contents. In ordinary situations, it does not create any issue, but when we are using SVG elements, due to the extra div, the components inside are not getting rendered.

How do you reproduce the problem?
CodeSandbox: https://codesandbox.io/p/sandbox/angry-breeze-nyftnh

Currently the react-core has Patternfly version 4. Therefore you can see the tooltip when hovered over the blue circle. But if you upgrade PF to v5, the blue circle is not visible anymore.

Expected behaviour
The component should be made visible.

Is this issue blocking you?
Yes.

Screenshots
If applicable, add screenshots to help explain the issue.

What is your environment?

  • OS: Fedora
  • Browser: Chrome
  • Version: Latest

What is your product and what release date are you targeting?
Openshift Developer Console

Any other information?

@Lucifergene
Copy link
Author

Solved the issue by adding the triggerRef to the ToolTip components

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant