Skip to content

Conversation

@DvTonder
Copy link

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

@DvTonder DvTonder force-pushed the clear_button branch 3 times, most recently from 8f974db to 0141fc4 Compare March 26, 2023 09:14
@DvTonder DvTonder force-pushed the clear_button branch 4 times, most recently from a3dee3f to 881ddef Compare April 22, 2023 21:34
@DvTonder
Copy link
Author

I have updated the full screen date picker to support the clear function

drchen
drchen previously approved these changes Apr 24, 2023
@drchen drchen added the Reviewing Internally An internal change has been created and sent for review. label Apr 24, 2023
@drchen drchen self-requested a review April 24, 2023 15:31
@drchen
Copy link
Contributor

drchen commented Apr 24, 2023

Can you rebase your cl on the head of the repository?

There seems some merge problem when I pulled it for our internal review.

@drchen drchen dismissed their stale review April 24, 2023 15:32

merge issue

@drchen drchen self-assigned this Apr 24, 2023
@DvTonder
Copy link
Author

It was a bit messy with a force push but I managed to rebase to the HEAD. Should be good now

@drchen
Copy link
Contributor

drchen commented Apr 24, 2023

It seems working now. Thank you! : )

@drchen drchen removed the request for review from hunterstich February 10, 2025 16:54
@drchen drchen removed their request for review February 10, 2025 16:54
@drchen drchen removed their assignment Feb 10, 2025
@drchen
Copy link
Contributor

drchen commented Feb 10, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Awaiting Design Feedback Reviewing Internally An internal change has been created and sent for review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add Neutral Button to MaterialDatePicker

4 participants