css - ionic 3 setting image as background for ionic tabs -
i need set tab bar image rather solid color. tabs.html like
<ion-tabs color="ferrari-bg" class="ferrari-tabs"> <ion-tab [root]="tab1root" tabicon="people-outline"></ion-tab> <ion-tab [root]="tab1root" tabicon="speedometer"></ion-tab> <ion-tab [root]="tab2root" tabtitle="about" tabicon="information-circle"></ion-tab> <ion-tab [root]="tab3root" tabicon="calendar"></ion-tab> <ion-tab [root]="tab3root" tabicon="film"></ion-tab> </ion-tabs>
and app.scss
.ferrari-tabs{ background-color: transparent !important; box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12); background-image: url("../assets/images/footer.png") !important; background-size: cover; }
how doesnt render image. in chrome dev console can see class applied no idea why failing show
you setting background ion-tabs. it's size full screen , overlapped current active tab. can not see it. if want set background tab bar
, style .show-tabbar
class.
.show-tabbar{ background-color: transparent !important; box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12); background-image: url("../assets/images/footer.png") !important; background-size: cover; }
Comments
Post a Comment