Skip to content

feat(material/datepicker): remove dependency on dialog #22383

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

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Apr 1, 2021

Currently the datepicker has a hard dependency on MatDialog due to its touch-specific appearance which makes it difficult to use together with the MDC packages, because they have an alternate dialog module.

These changes resolve the issue by removing the datepicker's dependency on MatDialog. The approach is loosely based on #13019, however I've simplified things a bit to make it more maintainable.

@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 1, 2021
@crisbeto crisbeto requested review from mmalerba and jelbourn April 1, 2021 10:45
@crisbeto crisbeto marked this pull request as ready for review April 1, 2021 10:45
@crisbeto crisbeto added P2 The issue is important to a large percentage of users, with a workaround target: major This PR is targeted for the next major release labels Apr 1, 2021
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added the action: merge The PR is ready for merge by the caretaker label Apr 1, 2021
@mmalerba mmalerba added the merge: fix commit message When the PR is merged, rewrites/fixups of the commit messages are needed label Apr 8, 2021
@mmalerba
Copy link
Contributor

mmalerba commented Apr 8, 2021

@crisbeto please rebase

@crisbeto crisbeto force-pushed the datepicker-dialog-remove branch from df6cc4b to df9042d Compare April 8, 2021 21:17
Currently the datepicker has a hard dependency on `MatDialog` due to its touch-specific appearance which makes it difficult to use together with the MDC packages, because they have an alternate dialog module.

These changes resolve the issue by removing the datepicker's dependency on `MatDialog`.  The approach is loosely based on angular#13019, however I've simplified things a bit to make it more maintainable.
@crisbeto crisbeto force-pushed the datepicker-dialog-remove branch from df9042d to 18ca9b0 Compare April 8, 2021 21:18
@crisbeto
Copy link
Member Author

crisbeto commented Apr 8, 2021

Rebased and fixed up the commit title.

@crisbeto crisbeto changed the title feat(material/dialog): remove dependency on dialog feat(material/datepicker): remove dependency on dialog Apr 8, 2021
@crisbeto crisbeto removed the merge: fix commit message When the PR is merged, rewrites/fixups of the commit messages are needed label Apr 8, 2021
@mmalerba mmalerba merged commit 7039d3e into angular:master Apr 13, 2021
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants