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

Limited to button elements?! #61

Closed
ErinPo opened this issue Feb 22, 2017 · 6 comments

Comments

Projects
None yet
3 participants
@ErinPo
Copy link

commented Feb 22, 2017

How to have tooltip over normal text within a paragraph?

@kazzkiq

This comment has been minimized.

Copy link
Owner

commented Feb 22, 2017

You can simply use an inline element such as <span> for this purpose.

@ErinPo

This comment has been minimized.

Copy link
Author

commented Feb 22, 2017

I wish... but it fails on iOS.

@kazzkiq

This comment has been minimized.

Copy link
Owner

commented Feb 22, 2017

Hmm it seems iOS only shows tooltips on clickable elements (buttons, links, etc). Looks like a bug.

@kazzkiq kazzkiq added the bug label Feb 22, 2017

@ErinPo

This comment has been minimized.

Copy link
Author

commented Feb 22, 2017

Yeah, I found out Safari has been like that for years. It's not a bug to count on Apple fixing. I was able to fix it by adding onclick="void(0)" to the span. Now the only iOS shortcoming left is that you cannot click away to remove focus and hide the tooltip. Any idea on that?

@kazzkiq kazzkiq added this to the v0.5.0 milestone Mar 21, 2017

@renatodeleao

This comment has been minimized.

Copy link

commented Apr 19, 2017

@ErinPo that might be related with this, and this should do the trick.

 .your-interactive-element { cursor: pointer}

Other readings:
Bootstrap tooltip issue
stackoverflow

kazzkiq added a commit that referenced this issue Aug 14, 2017

@kazzkiq

This comment has been minimized.

Copy link
Owner

commented Aug 14, 2017

The commit d4b2e59 adds your workaround, @renatodeleao. Thanks for the info!

@kazzkiq kazzkiq closed this Aug 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.