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 - [Table] - Th tooltip does not work as documented #9658

Closed
christianvogt opened this issue Sep 22, 2023 · 0 comments · Fixed by #9803
Closed

Bug - [Table] - Th tooltip does not work as documented #9658

christianvogt opened this issue Sep 22, 2023 · 0 comments · Fixed by #9803
Assignees
Labels
Milestone

Comments

@christianvogt
Copy link
Contributor

christianvogt commented Sep 22, 2023

Describe the problem
https://www.patternfly.org/components/table#th

Table Th has prop tooltip of type React.ReactNode with desctiption:

Tooltip to show on the header cell. Note: If the header cell is truncated and has simple string content, it will already attempt to display the header text. If you want to show a tooltip that differs from the header text, you can set it here. To disable it completely you can set it to null.

Unfortunately supplying the tooltip prop to the Th does not produce a tooltip.

How do you reproduce the problem?
Simply add tooltip="something" to any of the examples in the PF docs page and observe that no tooltip is present on hover of the table header cell.

Expected behavior
Expected a tooltip to be present.

Is this issue blocking you?
Not blocking.
Workaround is to wrap Th with a Tooltip.

Not ideal that the workaround points the tooltip at the cell instead of the contents when it's a checkbox:
image

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

Successfully merging a pull request may close this issue.

3 participants