Design improvements to date picker
Is your feature request related to a problem? Please describe.
Even though there are efforts to migrate to the native date picker, in some cases the NC date picker is used, for eg while booking an appointment we will show the NC date picker all the time.
The visual design of the date picker can be improved such that it reflects the current state of the NC design.
Describe the solution you'd like
| Before | After |
|---|---|
High priority:
- [x] change the border radius to match the current style
- [x] Use full month names
- [x] Make month, year and arrow buttons into tertiary buttons so the focus is on the dates
- [x] Always use full opacity text and buttons
- [x] Always use regular font size
Medium priority:
- [ ] Don't show last week of previous month/first week of next month
- [ ] Add
margin-bottom: var(--default-grid-baseline)for each row - [x] Remove the double arrow buttons in the top row (first and last buttons) as no other date picker uses these buttons
Low priority:
- [ ] remove the 1px border around the entire element
- [ ] There can be a larger gap for every hour as a little divider. In many cases like here, there would then be slots of 4 grouped together to get a better feeling for the time rather than a long list.
- [ ] One of the most important improvements UX-wise is: "disable dates for which no slots are available", is that possible to grey out the dates with no slots?
Date styles:
- [x] Day names (Su, Mo, etc) are
--color-text-maxcontrast - [ ] Dates are by default
--color-main-text - [ ] class
disabledhasbackground-color: var(--color-background-dark); - [ ] class
not-current-monthhascolor: var(--color-text-maxcontrast);
Describe alternatives you've considered
n/a
Additional context
Related to https://github.com/nextcloud/calendar/pull/6322
Hi, shouldnt the NcDateTimePicker finally be migrated over to the NcDateTimePickerNative?
@szaimen as @nimishavijay said above:
Even though there are efforts to migrate to the native date picker, in some cases the NC date picker is used, for eg while booking an appointment we will show the NC date picker all the time.
Since the datepicker needs to be shown permanently and also indicate on which day there are appointments available, we can not use the native datepicker popup here. See mockup at https://github.com/nextcloud/calendar/issues/6321#issuecomment-2334914901
Component is located in https://github.com/nextcloud-libraries/nextcloud-vue/
Hi all, calendar picker always defaults to Sunday, ignoring user regional settings. This causes scheduling errors in countries where Monday is the first day.
@marcoblancas can you please open a separate ticket for this so it doesnt get lost? Thank you :)
Obsolete. The old time picker was replaced in @nextcloud/vue v9