From 3da1bf45bae75c8513fbb4a8ed126252bbc4e9d4 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Fri, 10 Aug 2018 01:08:47 +0200 Subject: [PATCH] fix(toast): statusbarPadding --- core/.stylelintrc.yml | 2 -- .../components/action-sheet/action-sheet.ios.scss | 3 +-- .../components/action-sheet/test/basic/index.html | 4 ++++ core/src/components/app/app.scss | 2 ++ core/src/components/footer/footer.scss | 8 +++----- core/src/components/picker/picker.scss | 5 ++--- core/src/components/tabbar/tabbar.scss | 6 ++---- core/src/components/toast/animations/ios.enter.ts | 12 ++---------- core/src/components/toast/animations/ios.leave.ts | 12 ++---------- core/src/components/toast/test/basic/index.html | 5 +++++ core/src/components/toast/toast.ios.scss | 12 ------------ core/src/components/toast/toast.md.scss | 8 ++------ core/src/components/toast/toast.scss | 14 +++++++++++++- 13 files changed, 38 insertions(+), 55 deletions(-) diff --git a/core/.stylelintrc.yml b/core/.stylelintrc.yml index 0db23dfb84..5fc36bde75 100644 --- a/core/.stylelintrc.yml +++ b/core/.stylelintrc.yml @@ -268,8 +268,6 @@ rules: - margin - margin-left - margin-right - - margin-top - - margin-bottom - border-radius - border-top-left-radius - border-top-right-radius diff --git a/core/src/components/action-sheet/action-sheet.ios.scss b/core/src/components/action-sheet/action-sheet.ios.scss index d4443a2011..40d677877e 100644 --- a/core/src/components/action-sheet/action-sheet.ios.scss +++ b/core/src/components/action-sheet/action-sheet.ios.scss @@ -11,8 +11,7 @@ } .action-sheet-wrapper { - @include margin(constant(safe-area-inset-top), auto, constant(safe-area-inset-bottom), auto); - @include margin(env(safe-area-inset-top), auto, env(safe-area-inset-bottom), auto); + @include margin(var(--ion-statusbar-padding), auto, var(--ion-bottom-padding), auto); } diff --git a/core/src/components/action-sheet/test/basic/index.html b/core/src/components/action-sheet/test/basic/index.html index 0570f70b42..e02451199d 100644 --- a/core/src/components/action-sheet/test/basic/index.html +++ b/core/src/components/action-sheet/test/basic/index.html @@ -33,6 +33,10 @@