How can I achieve this? I added color="secondary" to the third ion-tab but it doesn’t change anything.
I don’t want to change tab’s active color… I’m talking about standard color.
Use attribute directive provided by Angular.
There is a super example in the doc.
Then you’ll able to apply css style according to the attribute you’ll pass.
link to the example / doc please?
Ion-tab can’t be styled easily with CSS3. I added css3 styles and then the style applied to the whole section within the tab, not just the tab icon and text.
Thanks for your response but how can I change font color?
Is there any way to change font color of a specific ion-tab?
I just want third ion-tab to have font color of green. The other two should stay with primary.
I found out I can change icon’s color by using icon’s css class.
.icon.ion-md-{{ your icon name }} class allows you to change icon color at global level so it will change color of tab menu icon as well… this has to be used in app.scss file with !important attribute.
But there isn’t a way to change font color of tab’s title.
Problem solved:
You can use CSS3 pseudo class to select a specific ion-tab and style it in any way you want. I’m surprised there isn’t any documentation for this yet.