Skip to content

Tooltip seems to only work with certain components #7282

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

Closed
literalpie opened this issue Oct 29, 2024 · 1 comment
Closed

Tooltip seems to only work with certain components #7282

literalpie opened this issue Oct 29, 2024 · 1 comment

Comments

@literalpie
Copy link

Provide a general summary of the issue here

I would expect to be able to use a Tooltip with any component or element, but it seems to be inconsistent.

🤔 Expected Behavior?

A tooltip should show if the children of TooltipTrigger are hovered or focused, regardless of what the children are. If there are requirements (eg. the children must be react-aria components or must have a ref attribute), this should be clearly documented.

😯 Current Behavior

The tooltip shows if there is a react-aria button in the TooltipTrigger, but not for divs or native browser buttons.

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

See this stackblitz. hover or focus each element in the example.

Version

react-aria-components 1.4.1

What browsers are you seeing the problem on?

Chrome, Safari

If other, please specify.

No response

What operating system are you using?

MacOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

@yihuiliao
Copy link
Member

I think this is a dupe of #6142

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

No branches or pull requests

2 participants