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 can I change tootip style ? #63

Open
lagriffedigitale opened this issue Mar 13, 2019 · 7 comments
Open

How can I change tootip style ? #63

lagriffedigitale opened this issue Mar 13, 2019 · 7 comments

Comments

@lagriffedigitale
Copy link

On IONIC 4, how can I change the tooltip style (background-color, padding, text style, etc...) ?
I've searched but I don't find anything...

Thanks.

@ihadeed
Copy link
Member

ihadeed commented Mar 13, 2019

Hey @lagriffedigitale

As of now I can't give you an answer since I haven't tried to style it externally.

I will update the Ionic 4 implementation to have its own SASS file that uses CSS variables to make customisation easy and more aligned with the current styling methods for Ionic 4.

Please keep in mind the current Ionic 4 version is experimental and might change soon. I've discovered a few issues with it due to usage of shadow DOM in latest Ionic. Hopefully I will find a solution to that soon.

@vieiraFelipee
Copy link

vieiraFelipee commented Mar 13, 2019

mm

Add this to global.css

tooltip-box {
	background-color: var(--ion-color-primary) !important;
	color: var(--ion-color-primary-contrast) !important;
	border-radius: 5px !important;
}

But i can't style the arrow.. please if u find how post here...

@ihadeed
Copy link
Member

ihadeed commented Mar 13, 2019

@tanrobles
Copy link

hey guys

If you are using Ionic 3, you can to add a style:

.tooltip {
border-radius: 4px;
border: none !important;
background: YOUR-COLOR !important;
color: #fff;
font-size: 1.2rem;
}

maybe globally or in you local.

@0x14Rp
Copy link

0x14Rp commented Jul 13, 2021

hey guys

If you are using Ionic 3, you can to add a style:

.tooltip {
border-radius: 4px;
border: none !important;
background: YOUR-COLOR !important;
color: #fff;
font-size: 1.2rem;
}

maybe globally or in you local.

this doesn't work for me :(

@antripathi121
Copy link

we can modify arrow style also as following
.has-arrow.arrow-bottom:before {
border-top: 5px solid blueviolet !important;
}

@antripathi121
Copy link

mm

Add this to global.css

tooltip-box {
	background-color: var(--ion-color-primary) !important;
	color: var(--ion-color-primary-contrast) !important;
	border-radius: 5px !important;
}

But i can't style the arrow.. please if u find how post here...

.has-arrow.arrow-bottom:before {
border-top: 5px solid blueviolet !important;
}

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

6 participants