[Tooltip]: children are required to be wrapped in span tags. shouldWrapChildren does not work.
See original GitHub issueAs of v0.3.1:
Here’s the codesandbox: https://codesandbox.io/s/blissful-greider-eywse
It shows the bug with a Tooltip
on its own and used inline with other content (my use case).
It also shows that shouldWrapChildren
doesn’t work.
It’s also broken on the docs site: https://chakra-ui.com/tooltip#usage
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Tooltip - Chakra UI
If the children of Tooltip is a string , we wrap with in a span with tabIndex set to 0 , to ensure...
Read more >Using chakra-ui ToolTip with a floating button - Stack Overflow
I figured it out. It turns out that instead of creating a forwardRef, I just needed to wrap the button in a span...
Read more >React Tooltip component - Material UI - MUI
The Tooltip has 12 placement choices. They don't have directional arrows; instead, they rely on motion emanating from the source to convey direction....
Read more >title - HTML: HyperText Markup Language - MDN Web Docs
Use the title attribute on an iframe to clearly identify the content of the iframe to screen readers. Open main menu.
Read more >Building a tooltip component - web.dev
A tooltip is shown working across a variety of examples and color ... Authors don't need to make custom elements into web components...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @aaronmcadam ,
I just looked into it and resolved the issue. Thanks for catching this.
I’ll release a patch soon.
Thanks for this!