MOBILE-4372 theme: Fix ion fab position in iOS RTL

RTL and host-context seems not to work on recent iOS versions
main
Pau Ferrer Ocaña 2023-09-15 10:51:28 +02:00
parent 3fb7bfa60b
commit 83dcbb0ea5
1 changed files with 19 additions and 0 deletions

View File

@ -1334,6 +1334,25 @@ ion-fab[core-fab] {
}
}
// The following 4 selectors can probably be removed after Ionic migration to 7+
ion-fab.fab-horizontal-start {
left: calc(10px + var(--ion-safe-area-right, 0px));
}
[dir=rtl] ion-fab.fab-horizontal-start {
right: calc(10px + var(--ion-safe-area-right, 0px));
left: unset
}
ion-fab.fab-horizontal-end {
right: calc(10px + var(--ion-safe-area-right, 0px));
}
[dir=rtl] ion-fab.fab-horizontal-end {
left: calc(10px + var(--ion-safe-area-right, 0px));
right: unset
}
ion-content.has-collapsible-footer ion-fab {
bottom: calc(var(--core-collapsible-footer-height, 0px) + 10px);
@include core-transition(all, 200ms);