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

caret disappears if content is more than one liner #56

Closed
mubasshir opened this issue Jun 22, 2015 · 7 comments
Closed

caret disappears if content is more than one liner #56

mubasshir opened this issue Jun 22, 2015 · 7 comments

Comments

@mubasshir
Copy link

When I have content one liner, caret appears.
But when I have content more than one liner, caret disappears and flat rectangle appears.

Any solution to this?

<i class="icon ion-ios-information-outline fa fa-2x right-icon" tooltips tooltip-side="left" tooltip-try="1" tooltip-content="Enter your personal number"></i>
@45kb
Copy link
Member

45kb commented Jun 22, 2015

@mubasshir Hi, this is weird, have you tried like this:

<span tooltips tooltip-side="left" tooltip-try="1" tooltip-content="Enter your personal number"> <i class="icon ion-ios-information-outline fa fa-2x right-icon"></i> </span>

It could be a css problem but can you please provide a working plunkr or jsfiddle to replicate the problem?

thank you

@mubasshir
Copy link
Author

hey,
sorry I tried CodePen but failed. I'm using Ionic Framework, and I have made many changes which are difficult to replicate.

When I adjust left of tooltip class from inspect, it becomes one liner and caret appears.

PS: when add more text in inspect, again caret disappears.

@45kb
Copy link
Member

45kb commented Jun 23, 2015

Hi @mubasshir what you mean by "adjust left of tooltip class" ?

Have you tried with the code i attached above?
Does this happens only on <i> elements?

I bet ionic css or something is changing the tooltip css behavior in some way, you should check deeply if something collide, actually i am unable to replicate the problem and see what's happening....

@45kb
Copy link
Member

45kb commented Jun 23, 2015

Also please try with this:

<i tooltip-content="<div>Hi</div><div>I am a new line inside tooltip</div>"></i>

@mubasshir
Copy link
Author

hey,
it did not work me. Also, instead of showing content its shows
<div>Hi</div><div>I am a new line inside tooltip</div>

Do I need to make html-escape=false or something?

@45kb
Copy link
Member

45kb commented Jun 24, 2015

@mubasshir It's hard to replicate your problem, i tried without any success, if you can provide a working example we can investigate, otherwise, unfortunately, we don't know how to help you.

I am going to close the issue (for the moment), we can still talk here and i'll be glad to help you.

@45kb 45kb closed this as completed Jun 24, 2015
@limax84
Copy link

limax84 commented Feb 3, 2016

@45kb I'm sorry if I'm off topic. However that thread is the closest to what I'm trying to do with 720kb-tooltips.
I'm trying to display two separate lines within my tooltip.
As you suggested above to try this :
<i tooltip-content="<div>Hi</div><div>I am a new line inside tooltip</div>"></i>
I'm guessing there is a way to achieve this, but this code just display the HTML code in the tooltip.
Is there an option to allow HTML code to be interpreted within the tooltip content ?

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

No branches or pull requests

3 participants