Skip to content

Commit cbab4fd

Browse files
chore(): fix linter errors
1 parent 8f8fa2d commit cbab4fd

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

core/src/components/content/content.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@
260260
transform: translateZ(0);
261261
}
262262

263-
264263
// Content: Header/Footer/Tab Bar Scroll Effect Hide — Gap Compensation
265264
// --------------------------------------------------
266265
// When a bar hides via scrollEffect="hide", it stays in the layout flow
@@ -271,17 +270,15 @@
271270
// When fullscreen=true, inner-scroll already fills the full viewport
272271
// (offset-top = 0), so translateY would over-shift the content.
273272
:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll {
274-
transition: transform 300ms cubic-bezier(0, 0, 0.2, 1),
275-
height 300ms cubic-bezier(0, 0, 0.2, 1);
273+
transition: transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1);
276274
}
277275

278276
:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll {
279277
height: calc(100% + var(--internal-header-hide-height, 0px));
280278

281279
transform: translateY(calc(-1 * var(--internal-header-hide-height, 0px)));
282280

283-
transition: transform 200ms cubic-bezier(0.4, 0, 1, 1),
284-
height 200ms cubic-bezier(0.4, 0, 1, 1);
281+
transition: transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1);
285282
}
286283

287284
// Footer gap compensation — only when content is NOT fullscreen
@@ -312,7 +309,8 @@
312309
:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,
313310
:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll,
314311
:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,
315-
:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll {
312+
:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden)
313+
.inner-scroll {
316314
transition: none;
317315
}
318316
}

core/src/components/header/header.common.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,15 @@ ion-header ion-toolbar:first-of-type {
2020
// Slide back into view when scrolling up — smooth deceleration eases the
2121
// header back into place.
2222
ion-header.header-scroll-effect-hide {
23-
transition: transform 300ms cubic-bezier(0, 0, 0.2, 1),
24-
opacity 300ms cubic-bezier(0, 0, 0.2, 1);
23+
transition: transform 300ms cubic-bezier(0, 0, 0.2, 1), opacity 300ms cubic-bezier(0, 0, 0.2, 1);
2524
}
2625

2726
// Slide out of view when scrolling down — header moves off the top of the
2827
// screen and fades out. Faster than the return to feel responsive to scroll.
2928
ion-header.header-scroll-effect-hide.header-scroll-hidden {
3029
transform: translateY(-100%);
3130

32-
transition: transform 200ms cubic-bezier(0.4, 0, 1, 1),
33-
opacity 300ms cubic-bezier(0.4, 0, 1, 1);
31+
transition: transform 200ms cubic-bezier(0.4, 0, 1, 1), opacity 300ms cubic-bezier(0.4, 0, 1, 1);
3432

3533
opacity: 0;
3634
}

core/src/components/tab-bar/test/scroll-effect-hide-footer-priority/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
<ion-content>
2626
<div class="ion-padding" style="height: 3000px">
2727
<h1>Content</h1>
28-
<p>Scroll down. The tab bar should NOT hide because it is nested inside ion-footer which has no scrollEffect. The footer controls hide behavior — the tab bar defers to it.</p>
28+
<p>
29+
Scroll down. The tab bar should NOT hide because it is nested inside ion-footer which has no scrollEffect.
30+
The footer controls hide behavior — the tab bar defers to it.
31+
</p>
2932
</div>
3033
</ion-content>
3134
<!--

0 commit comments

Comments
 (0)