Skip to content

Commit

Permalink
Merge branch 'main' of github.com:kumibrr/ionic-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
thetaPC committed Jan 29, 2025
2 parents f6702a7 + dc4caaf commit b1726ec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/src/components/modal/modal.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@
@include border-radius(var(--border-radius), var(--border-radius), 0, 0);
}

:host(.modal-sheet.modal-scroll-all) ion-footer ion-toolbar.ios:first-of-type {
/**
* Sheet modals require an additional padding as mentioned in the
* `core.scss` file. However, there's a workaround that requires
* a cloned footer to be added to the modal. This is only necessary
* because the core styles are not being applied to the cloned footer.
* It's important to update the padding value when the core styles are
* updated.
*/
:host(.modal-sheet.modal-scroll-all) ion-footer ion-toolbar:first-of-type {
padding-top: 6px;
}
3 changes: 3 additions & 0 deletions core/src/components/modal/modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ ion-backdrop {
bottom: 0;
}

// Sheet Modal - Scroll at all breakpoints
// --------------------------------------------------

:host(.modal-sheet.modal-scroll-all) ion-footer {
position: absolute;
bottom: 0;
Expand Down

0 comments on commit b1726ec

Please sign in to comment.