Repository navigation
fix(react, vue): inline modals apply ion-page class - #27481
Merged
Merged
Conversation
|
|
liamdebeasi
marked this pull request as ready for review
May 16, 2023 13:48
liamdebeasi
commented
May 16, 2023
| 'div', | ||
| { | ||
| id: 'ion-react-wrapper', | ||
| ref: this.wrapperRef, |
Contributor
Author
There was a problem hiding this comment.
All overlays in React still need a wrapper because of how we handle teleporting in react
liamdebeasi
commented
May 16, 2023
Comment on lines
-139
to
-141
| display: 'flex', | ||
| flexDirection: 'column', | ||
| height: '100%', |
Contributor
Author
There was a problem hiding this comment.
These styles were only needed for ion-modal and are now accomplished by the .ion-page class. See #24510
averyrousseau
approved these changes
May 23, 2023
sean-perkins
approved these changes
May 24, 2023
sean-perkins
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me, great work!
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
May 24, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue number: resolves #27470
What is the current behavior?
Passing multiple elements in to an inline modal causes
.ion-pageto not get set. This causes content to get pushed off the bottom of the modal equal to the height of the header. React has some special CSS that prevents this:ionic-framework/packages/react/src/components/createInlineOverlayComponent.tsx
Lines 137 to 140 in eb2772c
However, I think this should be delegated to
.ion-pageinstead so the behavior is consistent across frameworks. For example, Angular uses.ion-page:ionic-framework/angular/src/directives/overlays/modal.ts
Line 82 in eb2772c
What is the new behavior?
.ion-delegate-host.ion-page..ion-pagehas its own styles.Does this introduce a breaking change?
Other information
Revised Design Doc: https://github.com/ionic-team/ionic-framework-design-documents/pull/84