Has anyone been able to get the tab bar translucent on ionic 4? The following doesn’t seem to work. I have the header working as translucent. I have also set ion-content to fullscreen.
<ion-tab-bar slot="bottom" translucent="true">
</ion-tab-bar>
Anybody else have this problem?
iaguilera14:
translucent=“true”
Got the same problem. “translucent” attribute is not working for ion-tab-bar!
QuickFix for iOS (marking of the active tab is missing, but can be done manually):
<ion-tabs>
<div class="tabs">
<ion-tab-button tab="tab1">
<ion-icon name="flash"></ion-icon>
<ion-label>Tab One</ion-label>
</ion-tab-button>
<ion-tab-button tab="tab2">
<ion-icon name="apps"></ion-icon>
<ion-label>Tab Two</ion-label>
</ion-tab-button>
<ion-tab-button tab="tab3">
<ion-icon name="send"></ion-icon>
<ion-label>Tab Three</ion-label>
</ion-tab-button>
</div>
</ion-tabs>
.tabs {
position: absolute;
bottom: 0px;
width: 100%;
display: flex;
align-items: flex-end;
justify-content: center;
color: rgb(140, 140, 140);
background-color: rgba(255, 255, 255, 0.8);
}
1 Like
Add class inside <ion-tab-bar>
like this <ion-tab-bar slot="bottom" class="tabs" translucent="true" >
don’t use div class, it worked for me
servrox:
position: absolute; bottom: 0px; width: 100%; display: flex; align-items: flex-end; justify-content: center; color: rgb(140, 140, 140); background-color: rgba(255, 255, 255, 0.8);
Thank you ! worked like charm
1 Like