File tree Expand file tree Collapse file tree 5 files changed +20
-10
lines changed Expand file tree Collapse file tree 5 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ ion-content.js-scroll > scroll-content {
209
209
210
210
[nav-viewport ],
211
211
[nav-portal ],
212
- [tab-portal ] {
212
+ [tab-portal ],
213
+ .nav-decor {
213
214
display : none ;
214
215
}
Original file line number Diff line number Diff line change 7
7
$content-ios-outer-background : #efeff4 !default ;
8
8
$content-ios-padding : $content-padding !default ;
9
9
$content-ios-margin : $content-margin !default ;
10
- $content-ios-has-views- background : #000 !default ;
10
+ $content-ios-transition- background : #000 !default ;
11
11
12
12
ion-content {
13
13
background-color : $background-ios-color ;
@@ -17,9 +17,21 @@ ion-content {
17
17
background : $content-ios-outer-background ;
18
18
}
19
19
20
- ion-nav .has-views ,
21
- ion-tab .has-views {
22
- background : $content-ios-has-views-background ;
20
+ ion-page .show-page ~ .nav-decor {
21
+ // when ios pages transition, the leaving page grays out
22
+ // this is the black square behind all pages so they gray out
23
+ position : absolute ;
24
+ top : 0 ;
25
+ left : 0 ;
26
+ z-index : 0 ;
27
+ display : block ;
28
+
29
+ width : 100% ;
30
+ height : 100% ;
31
+
32
+ background : $content-ios-transition-background ;
33
+
34
+ pointer-events : none ;
23
35
}
24
36
25
37
Original file line number Diff line number Diff line change @@ -1324,9 +1324,6 @@ export class NavController extends Ion {
1324
1324
// class to the nav when it's finished its first transition
1325
1325
if ( ! this . _init ) {
1326
1326
this . _init = true ;
1327
- if ( ! this . isPortal ) {
1328
- this . _renderer . setElementClass ( this . getNativeElement ( ) , 'has-views' , true ) ;
1329
- }
1330
1327
}
1331
1328
1332
1329
} else {
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ import {ViewController} from './view-controller';
109
109
*/
110
110
@Component ( {
111
111
selector : 'ion-nav' ,
112
- template : '<div #viewport nav-viewport></div><div nav-portal></div>' ,
112
+ template : '<div #viewport nav-viewport></div><div class="nav-decor"></div><div nav-portal></div>' ,
113
113
directives : [ NavPortal ] ,
114
114
encapsulation : ViewEncapsulation . None ,
115
115
} )
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ import {ViewController} from '../nav/view-controller';
123
123
'[attr.aria-labelledby]' : '_btnId' ,
124
124
'role' : 'tabpanel'
125
125
} ,
126
- template : '<div #viewport></div>' ,
126
+ template : '<div #viewport></div><div class="nav-decor"></div> ' ,
127
127
encapsulation : ViewEncapsulation . None ,
128
128
} )
129
129
export class Tab extends NavController {
You can’t perform that action at this time.
0 commit comments