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

[Discuss] Tooltip component #1348

Closed
juhaelee opened this issue Aug 5, 2015 · 15 comments
Closed

[Discuss] Tooltip component #1348

juhaelee opened this issue Aug 5, 2015 · 15 comments
Labels
component: tooltip This is the name of the generic UI component, not the React module! new feature New feature or request

Comments

@juhaelee
Copy link

juhaelee commented Aug 5, 2015

Would it be better to make the tooltip into a higher order component? That way you can use the tooltip with any component and just wrap it with a tooltip component. Maybe it can take in a prop called action which specifies whether or not it appears onclick or hover

@jkruder
Copy link
Contributor

jkruder commented Aug 6, 2015

@mairh
Copy link

mairh commented Aug 6, 2015

👍

@timarney
Copy link

timarney commented Aug 8, 2015

That would be great, it would be nice to have for <a> tags, buttons etc...

@lucianlature
Copy link

👍

1 similar comment
@irium
Copy link

irium commented Oct 15, 2015

👍

@shaurya947 shaurya947 added the new feature New feature or request label Nov 24, 2015
@shaurya947 shaurya947 added this to the Composable Components milestone Nov 24, 2015
@shaurya947
Copy link
Contributor

@juhaelee would you like to take a shot at this and submit a prototype in a PR? :)

@alitaheri alitaheri modified the milestone: Composable Components Dec 23, 2015
@matthewoates
Copy link
Contributor

matthewoates commented Apr 23, 2016

I think so. The tooltip is really lacking for me. Namely, there are two things I need (aside from the current bugs mentioned in #3665)

  1. More flexibility in relative positioning. I'd like to position the tooltip all the way to the right or left, and not just above/below.

  2. The tooltip as far as I know is only available on buttons. I have a big use case for using tooltips on badges. If you tap/mouseover the circle from the badge, that will not cause the tooltip to show. (even though I want it to)

I'm imagining the component would wrap the element(s) like this:

<Tooltip position='right' text='# of problems'>
  <Badge badgeContent={'99'} badgeStyle={badgeStyle}>
    <IconButton>...</IconButton>
  </Badge>
</Tooltip>

@tintin1343
Copy link
Contributor

@matthewoates : A PR would be welcome.

@audetpascale
Copy link

Any updates?

@HeWasntOffByMuch
Copy link

did anything happen with this?

@matthewoates
Copy link
Contributor

My solution has been to use native tooltips (title="...")

The performance around tooltips doesn't seem to be that great right now.

@gpapin
Copy link

gpapin commented Jan 19, 2017

I was surprised to see this component is not publicly available this is very useful to avoid overcrowded interfaces and to guide users...

Any updates on this ?

@m2mathew
Copy link
Member

Is this something that we are pursuing in the next branch @oliviertassinari or @nathanmarks? If so, maybe this issue can be closed.

@oliviertassinari
Copy link
Member

@m2mathew We haven't made any progress on a Tooltip component as far as I know. That's definitely something we should be doing 👍 .

@oliviertassinari
Copy link
Member

I'm closing this issue for the #2230 issue around implementing a Tooltip component.

@oliviertassinari oliviertassinari added the component: tooltip This is the name of the generic UI component, not the React module! label Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tooltip This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
None yet
Development

No branches or pull requests