Skip to content

Commit 42e044d

Browse files
fix(tab-bar): fix compact scroll-effect-hide animating diagonally
1 parent 8fdd497 commit 42e044d

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

core/src/components.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ export namespace Components {
14621462
}
14631463
interface IonFooter {
14641464
/**
1465-
* Describes the scroll effect that will be applied to the footer. Only applies when the theme is `"ios"`.
1465+
* Describes the scroll effect that will be applied to the footer.
14661466
* @deprecated Use `scrollEffect` instead.
14671467
*/
14681468
"collapse"?: 'fade';
@@ -1471,7 +1471,7 @@ export namespace Components {
14711471
*/
14721472
"mode"?: "ios" | "md";
14731473
/**
1474-
* Describes the scroll effect that will be applied to the footer. `"hide"` slides the footer out of view when scrolling down and back in when scrolling up. `"fade"` fades the toolbar background on scroll. Only applies when the theme is `"ios"`.
1474+
* Describes the scroll effect that will be applied to the footer. `"hide"` slides the footer out of view when scrolling down and back in when scrolling up. `"fade"` fades the toolbar background on scroll.
14751475
*/
14761476
"scrollEffect"?: FooterScrollEffect;
14771477
/**
@@ -1544,7 +1544,7 @@ export namespace Components {
15441544
}
15451545
interface IonHeader {
15461546
/**
1547-
* Describes the scroll effect that will be applied to the header. Only applies when the theme is `"ios"`. Typically used for [Collapsible Large Titles](https://ionicframework.com/docs/api/title#collapsible-large-titles)
1547+
* Describes the scroll effect that will be applied to the header. Typically used for [Collapsible Large Titles](https://ionicframework.com/docs/api/title#collapsible-large-titles)
15481548
* @deprecated Use `scrollEffect` instead.
15491549
*/
15501550
"collapse"?: 'condense' | 'fade';
@@ -1558,7 +1558,7 @@ export namespace Components {
15581558
*/
15591559
"mode"?: "ios" | "md";
15601560
/**
1561-
* Describes the scroll effect that will be applied to the header. `"hide"` slides the header out of view when scrolling down and back in when scrolling up. `"condense"` collapses the large title into the main toolbar on scroll. Only applies when the theme is `"ios"`. `"fade"` fades the toolbar background on scroll. Only applies when the theme is `"ios"`.
1561+
* Describes the scroll effect that will be applied to the header. `"hide"` slides the header out of view when scrolling down and back in when scrolling up. `"condense"` collapses the large title into the main toolbar on scroll. `"fade"` fades the toolbar background on scroll.
15621562
*/
15631563
"scrollEffect"?: HeaderScrollEffect;
15641564
/**
@@ -7548,7 +7548,7 @@ declare namespace LocalJSX {
75487548
}
75497549
interface IonFooter {
75507550
/**
7551-
* Describes the scroll effect that will be applied to the footer. Only applies when the theme is `"ios"`.
7551+
* Describes the scroll effect that will be applied to the footer.
75527552
* @deprecated Use `scrollEffect` instead.
75537553
*/
75547554
"collapse"?: 'fade';
@@ -7557,7 +7557,7 @@ declare namespace LocalJSX {
75577557
*/
75587558
"mode"?: "ios" | "md";
75597559
/**
7560-
* Describes the scroll effect that will be applied to the footer. `"hide"` slides the footer out of view when scrolling down and back in when scrolling up. `"fade"` fades the toolbar background on scroll. Only applies when the theme is `"ios"`.
7560+
* Describes the scroll effect that will be applied to the footer. `"hide"` slides the footer out of view when scrolling down and back in when scrolling up. `"fade"` fades the toolbar background on scroll.
75617561
*/
75627562
"scrollEffect"?: FooterScrollEffect;
75637563
/**
@@ -7626,7 +7626,7 @@ declare namespace LocalJSX {
76267626
}
76277627
interface IonHeader {
76287628
/**
7629-
* Describes the scroll effect that will be applied to the header. Only applies when the theme is `"ios"`. Typically used for [Collapsible Large Titles](https://ionicframework.com/docs/api/title#collapsible-large-titles)
7629+
* Describes the scroll effect that will be applied to the header. Typically used for [Collapsible Large Titles](https://ionicframework.com/docs/api/title#collapsible-large-titles)
76307630
* @deprecated Use `scrollEffect` instead.
76317631
*/
76327632
"collapse"?: 'condense' | 'fade';
@@ -7640,7 +7640,7 @@ declare namespace LocalJSX {
76407640
*/
76417641
"mode"?: "ios" | "md";
76427642
/**
7643-
* Describes the scroll effect that will be applied to the header. `"hide"` slides the header out of view when scrolling down and back in when scrolling up. `"condense"` collapses the large title into the main toolbar on scroll. Only applies when the theme is `"ios"`. `"fade"` fades the toolbar background on scroll. Only applies when the theme is `"ios"`.
7643+
* Describes the scroll effect that will be applied to the header. `"hide"` slides the header out of view when scrolling down and back in when scrolling up. `"condense"` collapses the large title into the main toolbar on scroll. `"fade"` fades the toolbar background on scroll.
76447644
*/
76457645
"scrollEffect"?: HeaderScrollEffect;
76467646
/**

core/src/components/tab-bar/tab-bar.ionic.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@
9696
transition: transform globals.$ion-transition-time-200 globals.$ion-transition-curve-spring;
9797
}
9898

99-
:host(.tab-bar-scroll-hidden) {
99+
:host(.tab-bar-compact.tab-bar-scroll-hidden) {
100100
transform: translateY(calc(100% + var(--ion-safe-area-bottom, 0) + globals.$ion-space-1000)) translateX(calc(-50%));
101101

102102
transition: transform globals.$ion-transition-time-350 globals.$ion-transition-curve-base;
103103
}
104104

105-
:host([slot="top"].tab-bar-scroll-hidden) {
105+
:host([slot="top"].tab-bar-compact.tab-bar-scroll-hidden) {
106106
transform: translateY(-100%) translateX(calc(-50%));
107107
}
108108

0 commit comments

Comments
 (0)