Skip to content

Commit

Permalink
MOBILE-4372 theme: Remove modal lateral margin in RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonso-salces committed Aug 11, 2023
1 parent abc6461 commit 33bece4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/theme/theme.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,6 @@ body.core-iframe-fullscreen ion-router-outlet {
--ion-safe-area-right: 0px;

.modal-wrapper {
@include margin-horizontal(var(--modal-lateral-margin), null);

position: absolute;
@include position(0 !important, 0 !important, 0 !important, unset !important);
display: block;
Expand All @@ -719,6 +717,14 @@ body.core-iframe-fullscreen ion-router-outlet {
}
}

html:not([dir="rtl"]) {
.core-modal-lateral {
.modal-wrapper {
@include margin-horizontal(var(--modal-lateral-margin), null);
}
}
}

.core-modal-transparent-no-filter {
@extend .core-modal-transparent;
ion-backdrop {
Expand Down

0 comments on commit 33bece4

Please sign in to comment.