-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[MaterialDatePicker] Adding an optional 'Clear' button #3145
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
base: master
Are you sure you want to change the base?
Conversation
8f974db to
0141fc4
Compare
a3dee3f to
881ddef
Compare
|
I have updated the full screen date picker to support the clear function |
|
Can you rebase your cl on the head of the repository? There seems some merge problem when I pulled it for our internal review. |
|
It was a bit messy with a force push but I managed to rebase to the HEAD. Should be good now |
|
It seems working now. Thank you! : ) |
c730ab2 to
56c0806
Compare
404eec7 to
3cf2d1a
Compare
0af7a5f to
c04470c
Compare
7f55925 to
acddaf7
Compare
|
Hey Hunter, I think the issue we've run into here is that in certain layouts we were not sure where to put the "clear" button. Will you able to have someone to take a look or check if designers have any thoughts? |
…emove the selected date with the option to calling a clear listener and dismissing the dialog when clicked. Supports both dialog and full screen mode
…. 'Clear') The design suggestion is following the spec here: https://m3.material.io/components/date-pickers/specs#f25f68b7-1bb5-4248-829e-fe3cd3499dab And adding only the clear button to the bottom button bar
…emove the selected date with the option to calling a clear listener and dismissing the dialog when clicked. Supports both dialog and full screen mode
This change adds an optional 'Clear' button that can be used to remove the selected date with the option to calling a clear listener and dismissing the dialog when clicked.
closes #1332
Note: This is the same code as previously submitted as a pull request but it has been rebased against the latest codebase as of 18 December 2022