Skip to content

Commit f2db74b

Browse files
committed
fix(tabs): show navbar on second page in tab
1 parent 9a4b6bb commit f2db74b

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

ionic/components/navbar/navbar.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ class ToolbarBackground {
107107
'</div>',
108108
host: {
109109
'[hidden]': '_hidden',
110-
'[class.show-tab-navbar]': '_showNavbar',
111110
'class': 'toolbar'
112111
},
113112
directives: [BackButton, BackButtonText, Icon, ToolbarBackground]
@@ -119,7 +118,6 @@ export class Navbar extends ToolbarBase {
119118
private _bbRef: ElementRef;
120119
private _bbtRef: ElementRef;
121120
private _bgRef: ElementRef;
122-
private _showNavbar: boolean;
123121

124122
/**
125123
* @private
@@ -217,11 +215,6 @@ export class Navbar extends ToolbarBase {
217215
setHidden(isHidden: boolean) {
218216
// used to display none/block the navbar
219217
this._hidden = isHidden;
220-
221-
// on the very first load, the navbar may load quicker than
222-
// the tab content, which looks weird. This makes sure that
223-
// the tab's navbar doesn't show before the tab has fully loaded
224-
this._showNavbar = !isHidden;
225218
}
226219

227220
}

ionic/components/tabs/tabs.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,6 @@ ion-tabs > ion-navbar-section {
3838
order: $flex-order-tabbar-navbar;
3939
}
4040

41-
ion-tabs > ion-navbar-section ion-navbar.toolbar.show-navbar {
42-
// by default, do not show tab navbars when they render
43-
opacity: 0;
44-
}
45-
46-
ion-tabs > ion-navbar-section ion-navbar.toolbar.show-navbar.show-tab-navbar {
47-
// only when the tab content has loaded should it be rendered
48-
opacity: 1;
49-
}
50-
5141
ion-tabbar-section {
5242
position: relative;
5343
order: $flex-order-tabbar-bottom;

0 commit comments

Comments
 (0)