From cb03b651bac15dbd55f9a28b459c477d7788088a Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 8 Sep 2021 12:54:45 -0400 Subject: [PATCH 1/2] fix(tab-bar): safe area padding now added when slot="top" --- core/src/components/tab-bar/tab-bar.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/components/tab-bar/tab-bar.scss b/core/src/components/tab-bar/tab-bar.scss index ee703639fbb..a75892261c8 100644 --- a/core/src/components/tab-bar/tab-bar.scss +++ b/core/src/components/tab-bar/tab-bar.scss @@ -62,6 +62,7 @@ } :host([slot="top"]) { + padding-top: var(--ion-safe-area-top, 0); padding-bottom: 0; border-top: 0; @@ -71,4 +72,4 @@ :host(.tab-bar-hidden) { /* stylelint-disable-next-line declaration-no-important */ display: none !important; -} \ No newline at end of file +} From 93dba5da1324539ec6c679d67ead3a5b66e10046 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 8 Sep 2021 12:58:28 -0400 Subject: [PATCH 2/2] test(tab-bar): update test --- core/src/components/tabs/test/placements/index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/src/components/tabs/test/placements/index.html b/core/src/components/tabs/test/placements/index.html index 711c413fe52..424eb0d4217 100644 --- a/core/src/components/tabs/test/placements/index.html +++ b/core/src/components/tabs/test/placements/index.html @@ -9,7 +9,14 @@ - + + + +