Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions core/src/components/modal/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1522,10 +1522,13 @@ export class Modal implements ComponentInterface, OverlayInterface {
}
}

// Only apply wrapper padding for standard Ionic layouts (has ion-content
// but no ion-footer). Custom modals with raw HTML are fully
// developer-controlled and should not be modified.
if (!hasContent || hasFooter) return;
// Only apply wrapper padding when ion-content is absent. When
// ion-content is present, it already handles bottom safe-area via
// its own scroll container — applying it again at the wrapper level
// creates double compensation (visible as a white gap on iOS).
// Custom modals with raw HTML are fully developer-controlled and
// should not be modified.
if (hasContent || hasFooter) return;

// Reduce wrapper height by safe-area and add equivalent padding so the
// total visual size stays the same but the flex content area shrinks.
Expand Down