I recently updated the styling on my ion-tabs
.
They are displaying correctly on desktop, but not on mobile.
What am I missing?
Desktop View:
https://i.sstatic.net/xTSTR.png
The ion-tabs
renders properly.
Mobile View:
https://i.sstatic.net/SGhLP.jpg
The ion-tabs
appears white.
How can I make them look consistent? I came across this resource mentioning a custom theme, but is there a faster solution available?
This is the code I have used so far:
HTML:
<ion-tabs class="tabs-icon-top tabs-color-active-positive">
<!-- Home Tab -->
<ion-tab icon-off="ion-android-home" icon-on="ion-android-home" ui-sref="tab.home">
<ion-nav-view name="tab-home"></ion-nav-view>
</ion-tab>
<!-- Notifications Tab -->
<ion-tab icon-off="ion-android-notifications" icon-on="ion-android-notifications" ui-sref="tab.notifications">
<ion-nav-view name="tab-notifications"></ion-nav-view>
</ion-tab>
<!-- Search Tab -->
<ion-tab icon-off="ion-android-search" icon-on="ion-android-search" ui-sref="tab.search">
<ion-nav-view name="tab-search"></ion-nav-view>
</ion-tab>
<!-- Account Tab -->
<ion-tab icon-off="ion-android-person" icon-on="ion-android-person" ui-sref="tab.account">
<ion-nav-view name="tab-account"></ion-nav-view>
</ion-tab>
</ion-tabs>
SCSS:
// Tabs
.tabs {
background-color: #242424;
}
ion-tabs.tabs-color-active-positive .tab-item {
color: #fff !important;
}
.tab-item .icon {
padding-top: 2px;
height: 48px;
font-size: 40px;
}