-
Notifications
You must be signed in to change notification settings - Fork 176
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
Prevent tooltip from rendering with empty label #1834
Conversation
🦋 Changeset detectedLatest commit: 14b295a The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I'm wondering what's the point of using the tooltip to not show the label tooltip ? 🤔 |
To handle scenarios where the tooltip message is
The same applies to menuitems, links, etc.. If |
Should this PR be opened @mazzucchelli? |
Yes, my bad, I didn't notice it was on draft state |
Hey @mazzucchelli, I don't know if there's a way to check this from a design point of view but it seems like a good improvement :) |
14b295a
to
bf538d1
Compare
Why is it needed?
The
label
prop for the<Tooltip />
component is optional, but it doesn't prevent the tooltip from rendering when it's missing.How to test it?
Create a tooltip with an empty
label
prop