material icon indicating copy to clipboard operation
material copied to clipboard

md-datepicker first impression feedback

Open no-more opened this issue 11 years ago • 32 comments

Hi,

First of all, great job.

I have just tried the new date picker and have a few questions:

  • The date picker does not fit well with other input (http://codepen.io/anon/pen/doLBzj). Shouldn't it be working inside a md-input-container as md-select is currently doing ?
  • It took me some time to understand the scroll to change month feature. Perhaps there should be an other way to change month and year
  • It does not fully support localization :

2015-08-15_124808

In this case (french) the date format should be dd/mm/yyyy and not mm/dd/yyyy The first day of the week is l (Lundi -> Monday) not d (Dimanche -> Sunday)

  • Someone should update the input demo page to include select and date as samples
  • will there be a datetime picker ?
  • there should be an option to disable some dates
  • an other option to change background color of some dates as weekends or make it customizable would be great

Thanks a lot, it's a great component

no-more avatar Aug 15 '15 08:08 no-more

After more testing it seems the date format displayed (mm/dd/yyyy) is related to the browser configuration. If I switch to a french environment it's correctly displayed. You can ignore this point. But the first day of week is still not correctly set.

no-more avatar Aug 15 '15 09:08 no-more

Yes, it looks great so far! But because there's no hint that the calendar can be scrolled, it also took me a surprisingly long time (~30-45 seconds) to figure out how to change months.

Perhaps adding arrows (in addition to the scrolling) would be better? Something like the Windows 10 toolbar calendar:

image

The material spec also uses arrows in addition to swiping.

ngraef avatar Aug 15 '15 21:08 ngraef

Agree with both previous comments about trying to figure out the calendar scrolling. Took me a similar amount of time to figure out what was going on.

stevenmiles avatar Aug 17 '15 07:08 stevenmiles

+1 for calendar scrolling. Took me a while to figure it out.

kamarouski avatar Aug 17 '15 08:08 kamarouski

+1 for an up and down button respectively, to change month. Especially important to actually show the picker slide up and down when changing month so that it is easier to actually understand that this is something you can do.

Think it should also be considered to follow the scrolling guidelines for grids in this case: https://www.google.com/design/spec/components/grid-lists.html#grid-lists-behavior. I.e. to cut off a bigger chunk of another month to indicate that you can actually view it. So a solution might be to show both the following month's title along with the first row and half the second row. Possibly also the more of the preceding month's rows.

As it is now I tested it for several minutes without noticing that you could change month by scrolling. I might however be biased as I assumed it was an incomplete version of the material design date picker. Which is shown to be horizontal, as horizontal scrolling seems to be "discouraged due to breaking normal reading patterns" (see grid scroll guidelines) I assumed it was not scrollable.

Regardless of my bias I do think it would be better to either include more rows from either proceeding or following months or completely cut off showing the following month's title if the view port is deemed too small to allow further extending.

Koslun avatar Aug 17 '15 09:08 Koslun

The scrolling behavior is from the spec we are following, which is not yet published to the Material Design site. The calendar shows one extra row from the next month, which is meant to indicate that it can be scrolled. Based on the amount of confusion, though, I'll ask our UX people about how we can make it more clear.

The not aligning with md-input is likely caused by an issue with the md-input itself, due to #3234.

The internationalization is all done through $mdDateLocaleProvider. Please see the docs.

jelbourn avatar Aug 17 '15 19:08 jelbourn

@jelbourn In case this helps the UX team: I did notice the extra row for the next month, but with just the month/year title (see Aug-Sep below), it looked to me like an action on a card (see Cards - Actions), so my first instinct was to try clicking it (more times than I'm proud to admit). However, moving to the Sep-Oct example where the extra row also contains a few dates, I think the scrolling is much clearer.

ngraef avatar Aug 17 '15 19:08 ngraef

+1 for calendar scrolling I didn't notice it until I read this. I highly doubt any of my users would have figure this out easily.

Also it doesn't position it self above the button if there isn't enough room for itself. image

Also the numbers seem a bit light almost to the point where they look disabled. But otherwise great job this date picker looks amazing!

epelc avatar Aug 17 '15 20:08 epelc

@jelbourn Had a similar experience as @ngraef . Showing just the title of the next month below the current left me thinking it was just part of the design, albeit a weird one.

I at least seem to be the only one here who completely failed to notice the scroll. Did a blind test on a friend who also noticed it after like 5-10 seconds. Also trying to click the month title

Great that you're forwarding this to the UX team. Great work with the implementation anyway!

Koslun avatar Aug 17 '15 22:08 Koslun

The calendar shows one extra row from the next month, which is meant to indicate that it can be scrolled

@jelbourn the next month below the current month didn't give me an indication that it could be scrolled. Just like @ngraef and @Koslun, it indicated to me that I should click it. This is why it took me a while to figure it out. I was clicking, not scrolling.

In addition, I think the current date picker is a little inconvenient if you want to select a date that isn't near the current date without whirling the mouse wheel or swiping like a crazy person.

stevenmiles avatar Aug 18 '15 08:08 stevenmiles

Comparing Lumx date picker http://ui.lumapps.com/directives/date-picker with this one, it seems Lumx is more inline with the MD specs.

When you click on the big year in the Lumx datepicker, it opens a year selector, which is very handy. And it has arrows to pick month.

As for the feature requests, it would be nice to be able to expose an on-click or on-change event so we can bind actions to it. (maybe it's already possible, I didn't test)

Also, it is often desireable to be able to set minimum date and/or maximum date on datepickers, so the dates out of min/max range would be disabled/grayed out. Especially if we were to implement a date-range picker.

Just my 2 cents ;)

MilosStanic avatar Aug 18 '15 10:08 MilosStanic

It really should not be only by scroll. I also think that there should be a way to return to the current month. When you scroll down for a while and wants to return to the current month is a little painful to locate.

It would be wonderful if the behavior of month text be like md-subheader (float while scrolling)

nextor2k avatar Aug 18 '15 15:08 nextor2k

Setting a min/max date is tracked by #4158

No change events are exposed now, feel free to file a more specific issue for that.

jelbourn avatar Aug 18 '15 17:08 jelbourn

@MilosStanic If I understand @jelbourn correctly from his comment above, this implementation is following another unpublished part of the MD spec for what I assume is the inline version of the date picker.

Koslun avatar Aug 19 '15 01:08 Koslun

Also, doesn't seem to work well with smaller displays

image

stevenmiles avatar Aug 19 '15 07:08 stevenmiles

@Koslun yes, I thought I understood so about unpublished MD spec part, but I wasn't sure. Anyhow, I've been waiting for a datepicker since December 2014, so I really wish it comes true soon.

MilosStanic avatar Aug 19 '15 09:08 MilosStanic

Great to see this added - thank you!

Requests/suggestions on the initial implementation:

  • Can the icon be optional? Perhaps added explicitly using md-icon.
  • Masked input when typing in a date would make it easier:
    • No need to type out slashes
    • Structure is shown when there's no value specified
    • Date component can be selected when it is tapped, allowing to replace a value easily
    • Ideally, it would be possible to use the mousewheel to change the selected component value, but I'm not sure how that would work in a touch friendly way. Perhaps open the picker and use selectors for components. Leading on to..
  • Feels like it should be possible to select values for date components directly when the picker is open. eg. Tap the month name and pick a new one. Certainly for year I'd say this is really important, or you just have to resort to typing, which without masking involves selecting regions of text.

Let me know if I should create separate issues for any of these.

Justin

ghost avatar Aug 19 '15 09:08 ghost

Feature request: Option to enable time-picker in the same widget

bitoverflow avatar Aug 25 '15 09:08 bitoverflow

I don't like the datepicker doesn't look material at all. As a user, it's also not intuitive to use as everyone is accustomed to principles of selecting month and year using click and not scrolling. The only thing that is material is the opening animation. Unfortunately not the best component!

I was expecting something like these components: screen shot 2015-09-02 at 11 27 57 am

  1. Datepicker
  2. Timepicker

piyushchauhan2011 avatar Sep 02 '15 01:09 piyushchauhan2011

+1 I was expecting the above look and feel

ghost avatar Sep 02 '15 08:09 ghost