Skip to content

Commit c8392bb

Browse files
committed
chore(modal): added explanation for padding-top
1 parent cef6fd7 commit c8392bb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-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
}

0 commit comments

Comments
 (0)