-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(react): backdrop for inline modal/popover overlay #24453
Conversation
I'd love to wait until after the New Year to discuss this with the team 🙂 . I could see use deciding not to expose a new public method on the controller API and instead exporting pure constants for just the popover & modal custom element definitions. |
Created a dev build of the latest to test with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original issue says it impacts Vue as well, so we should make this change in https://github.com/ionic-team/ionic-framework/blob/main/packages/vue/src/components/Overlays.ts#L12-L18 as well
Also, my understanding of the issue is this impacts all overlay components, not just modal and popover. If that is the case, components like action sheet also need to be updated: https://github.com/ionic-team/ionic-framework/blob/main/packages/react/src/components/IonActionSheet.tsx#L6
Alright this should look better now. Didn't realize the overlays generation script was local to this repo. Simplified not needing to update the output targets. Kept the commits to follow the changes, but will squash and rework to better explain it affects react & vue targets. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run build
) was run locally and any changes were pushednpm run lint
) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
In the React target, inline overlays (
ion-popover
andion-modal
) will not define their nested children custom elements (ion-backdrop
), when in a production tree-shaken build.Issue Number: #24449
What is the new behavior?
Inline overlays will share the same custom element definition logic as the regular overlays. This correctly defines
ion-backdrop
for popover/modal inline overlays.Does this introduce a breaking change?
Other information