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

how to add the css for tooltip like work-break and color etc., #77

Open
MosesBurla opened this issue Oct 28, 2020 · 1 comment
Open

Comments

@MosesBurla
Copy link

Hi, can anyone please solve this.

whenever adding the large link in tooltip string the text alignment issue is throwing.

<button tooltip="https://github.com/zyra/ionic-tooltips-example/blob/master/src/pages/home/home.html"  positionV="bottom" positionH="right" [arrow]="showArrow" [event]="tooltipEvent" [duration]="5000"></button>

The output is getting below so that I want to use the word-break property in CSS to solve this issue in the mobile view. Can anyone please tell how to add the word-break property in the tooltip styles

Capture

@MosesBurla MosesBurla changed the title how to adding the css for tooltip like work-break and color etc., how to add the css for tooltip like work-break and color etc., Oct 28, 2020
@dovk
Copy link

dovk commented Jan 9, 2021

If I understood you correctly, instead of
tooltip="https://github.com/zyra/ionic-tooltips-example/blob/master/src/pages/home/home.html"
you would have 2 lines - both tooltip and tooltipHtml with the tooltipHtml having the text - notice the
inside

tooltip
tooltipHtml="https://github.com/zyra/ionic-tooltips<br>-example/blob/master/src/pages/home/home.html"

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

No branches or pull requests

2 participants