Skip to content

Commit b1726ec

Browse files
committed
Merge branch 'main' of github.com:kumibrr/ionic-framework
2 parents f6702a7 + dc4caaf commit b1726ec

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

core/src/components/modal/modal.ios.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@
8888
@include border-radius(var(--border-radius), var(--border-radius), 0, 0);
8989
}
9090

91-
:host(.modal-sheet.modal-scroll-all) ion-footer ion-toolbar.ios:first-of-type {
91+
/**
92+
* Sheet modals require an additional padding as mentioned in the
93+
* `core.scss` file. However, there's a workaround that requires
94+
* a cloned footer to be added to the modal. This is only necessary
95+
* because the core styles are not being applied to the cloned footer.
96+
* It's important to update the padding value when the core styles are
97+
* updated.
98+
*/
99+
:host(.modal-sheet.modal-scroll-all) ion-footer ion-toolbar:first-of-type {
92100
padding-top: 6px;
93101
}

core/src/components/modal/modal.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ ion-backdrop {
167167
bottom: 0;
168168
}
169169

170+
// Sheet Modal - Scroll at all breakpoints
171+
// --------------------------------------------------
172+
170173
:host(.modal-sheet.modal-scroll-all) ion-footer {
171174
position: absolute;
172175
bottom: 0;

0 commit comments

Comments
 (0)