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

[Tooltip]: add possibility to enable tooltip only if toggler is overflowed #2712

Open
AlekseyManetov opened this issue Dec 19, 2024 · 0 comments
Labels
Contributor needed improvement Something that could be better

Comments

@AlekseyManetov
Copy link
Collaborator

AlekseyManetov commented Dec 19, 2024

Description

It’s a common use case to enable tooltips only when the text in the tooltip target is truncated.
For example, we have a request to add this behavior for the DataTable column header name: #2710.

To Do

Let’s try to find a solution for detecting when a target node is overflowed and enabling tooltip by hover if yes. The solution should have minimal impact on performance (e.g., avoid triggering reflows on each render) and work for most general cases.
If it's possible, we can introduce a prop, such as enableWhenOverflowed (the naming should be carefully considered), to enable this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contributor needed improvement Something that could be better
Projects
Status: Backlog
Development

No branches or pull requests

1 participant