-
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(modal): allow for custom dialog implementations #25630
Conversation
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.
Nice work, opens up some creative options for modal implementations 🎉
@liamdebeasi is this only for inline modals? Looks like it doesn't work for modals created via ModalController |
@EinfachHans this applies to all modals. The style changes are to the inner Inline example: https://stackblitz.com/edit/angular-nagmrz?file=src%2Fstyles.css,src%2Fapp%2Fapp.component.html Controller example: https://stackblitz.com/edit/angular-4sfe9x?file=src%2Fstyles.css,src%2Fapp%2Fmodal-example.component.html |
@sean-perkins you're right, but doesn't work very well with |
@EinfachHans The intention of this feature is to be used without We are not intending this to be used in combination with |
Docs: ionic-team/ionic-docs#2444
Pull request checklist
Please check if your PR fulfills the following requirements:
ionic-docs
repo, in a separate PR. See the contributing guide for details.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?
Issue URL: resolves #24080
What is the new behavior?
ion-modal
withoution-content
in order to make custom dialogs. It also allows developers to have these dialogs be automatically sized by the browser (such aswidth: fit-content
)Does this introduce a breaking change?
Other information
Dev build:
6.1.15-dev.11657743655.1e3dcc3c