Skip to content

Instantly share code, notes, and snippets.

@erineland
Created May 23, 2015 12:07
Show Gist options
  • Save erineland/a4052cb6546d67912f21 to your computer and use it in GitHub Desktop.
Save erineland/a4052cb6546d67912f21 to your computer and use it in GitHub Desktop.
How to add custom styles to multiple tab bars in ionic, publishing because it took me a while to figure out how to do it!
//To apply different styles nested tabs, you have to use the respective DOM positions
ion-nav-view {
ion-tabs {
/*Styling bottom nav bar */
.tab-nav.tabs {
background-color: $ygi-green !important;
.tab-item-active {
background-color: white !important;
color: black !important;
}
}
/*Styling nested tabs */
ion-nav-view{
ion-view {
ion-tabs{
.tab-nav.tabs{
background-color: lightgray !important;
.tab-item-active {
background-color: grey !important;
//color: black; //I didn't need this, others might
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment