Skip to content
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

feat(ion-datetime): match Material Design for Android datetime picker #22152

Closed
Yohandah opened this issue Sep 23, 2020 · 3 comments
Closed

feat(ion-datetime): match Material Design for Android datetime picker #22152

Yohandah opened this issue Sep 23, 2020 · 3 comments
Labels

Comments

@Yohandah
Copy link

Yohandah commented Sep 23, 2020

Feature Request

Ionic version:

[x] 5.x

Describe the Feature Request

Today, Ionic uses ion-datetime to display a picker of time, date, or both in a wheel form factor.

In material design, this is two different component : date-picker, and time-picker, with each, their specific behavior :

DatePicker :
Wheel isn't a thing. This is a calendar view, with an option for a date range.
image

https://material.io/components/date-pickers

TimePicker :
Wheel isn't a thing. This is a manual input with keyboard or a clock picker.
image

https://material.io/components/time-pickers

Currently being implemented in MDC : material-components/material-components-web#54 & material-components/material-components-web#55


But iOS uses only one component for both behaviors : UIDatePicker with 3 styles, :

  1. classic wheel : Current Ionic implementation, a wheel picker
  2. inline : Calendar view, time view or both that takes place into the view
  3. compact : Calendar view, time view or both that takes place into a popup modal

nb: The time picker can be filled with keyboard but also can be scrolled to change its value like a wheel

https://developer.apple.com/design/human-interface-guidelines/ios/controls/pickers/


I don't know what Ionic's take should be since this is pretty tricky and there is a LOT of behaviors so a lot of work to be done, but I think it would be great to make some improvements on IonDateTime to be closer to the native platforms and have better date management through Ionic.

@ionitron-bot ionitron-bot bot added the triage label Sep 23, 2020
@liamdebeasi
Copy link
Contributor

Thanks for the issue. I am going to merge this with #15500.

@Yohandah
Copy link
Author

@liamdebeasi okay I saw this issue but thought it was only for Desktop and not for Android and iOS UIDatePicker my bad! thanks

@ionitron-bot
Copy link

ionitron-bot bot commented Oct 23, 2020

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Oct 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants