Skip to content

Commit e4bbcc6

Browse files
committed
fix(scroll): fix scrolling after switching tabs
Closes #7154
1 parent f02b6ea commit e4bbcc6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/app/structure.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@ ion-tab scroll-cotent {
7272
display: none;
7373
}
7474

75+
ion-tab {
76+
transform: translateY(-200%);
77+
}
78+
7579
ion-tab.show-tab {
76-
z-index: $z-index-selected-tab;
80+
transform: translateY(0);
7781
}
7882

7983
ion-tab.show-tab scroll-cotent {

src/components/app/z-index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ $z-index-scroll-content: 1;
1313
$z-index-refresher: 0;
1414

1515
$z-index-page-container: 0;
16-
$z-index-selected-tab: 1;
1716
$z-index-toolbar: 10;
1817
$z-index-toolbar-background: -1;
1918

0 commit comments

Comments
 (0)