Skip to content

feat(datepicker): initial styling for date range - #18369

Merged
crisbeto merged 1 commit into
angular:date-rangefrom
crisbeto:date-range-styling
Feb 5, 2020
Merged

feat(datepicker): initial styling for date range#18369
crisbeto merged 1 commit into
angular:date-rangefrom
crisbeto:date-range-styling

Conversation

@crisbeto

@crisbeto crisbeto commented Feb 2, 2020

Copy link
Copy Markdown
Member

Reworks a few things in the calendar and adds the styling for the date range. A couple of notes:

  • This isn't the final UX of when start/end ranges will be selected. I wanted to have most of the functionality in place before playing around with the UX.
  • This approach currently has an issue where the range won't go from one month into another properly. The problem is that the date cells store the current day internally. I'll make a follow-up PR that'll address the issue by storing the timestamp instead.

Feb-02-2020 20-11-24

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent pr: merge safe labels Feb 2, 2020
@crisbeto
crisbeto requested a review from mmalerba as a code owner February 2, 2020 19:16
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 2, 2020

@mmalerba mmalerba left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that this breaks the hover and focus styles for the single date calendar

Comment thread src/material/datepicker/calendar-body.ts Outdated
Comment thread src/material/datepicker/calendar.ts Outdated
Reworks a few things in the calendar and adds the styling for the date range. A couple of notes:
* This isn't the final UX of when start/end ranges will be selected. I wanted to have most of the functionality in place before playing around with the UX.
* This approach currently has an issue where the range won't go from one month into another properly. The problem is that the date cells store the current day internally. I'll make a follow-up PR that'll address the issue by storing the timestamp instead.
@crisbeto

crisbeto commented Feb 5, 2020

Copy link
Copy Markdown
Member Author

Good catch about the hover/focus styling, I totally missed that. It also made me realize that the date range selection styles didn't work when selecting with the keyboard. It should all be fixed now, together with the rest of the feedback.

@crisbeto
crisbeto merged commit c0cd049 into angular:date-range Feb 5, 2020
crisbeto added a commit that referenced this pull request Feb 5, 2020
Reworks a few things in the calendar and adds the styling for the date range. A couple of notes:
* This isn't the final UX of when start/end ranges will be selected. I wanted to have most of the functionality in place before playing around with the UX.
* This approach currently has an issue where the range won't go from one month into another properly. The problem is that the date cells store the current day internally. I'll make a follow-up PR that'll address the issue by storing the timestamp instead.
crisbeto added a commit that referenced this pull request Feb 17, 2020
Reworks a few things in the calendar and adds the styling for the date range. A couple of notes:
* This isn't the final UX of when start/end ranges will be selected. I wanted to have most of the functionality in place before playing around with the UX.
* This approach currently has an issue where the range won't go from one month into another properly. The problem is that the date cells store the current day internally. I'll make a follow-up PR that'll address the issue by storing the timestamp instead.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Feb 17, 2020
Reworks a few things in the calendar and adds the styling for the date range. A couple of notes:
* This isn't the final UX of when start/end ranges will be selected. I wanted to have most of the functionality in place before playing around with the UX.
* This approach currently has an issue where the range won't go from one month into another properly. The problem is that the date cells store the current day internally. I'll make a follow-up PR that'll address the issue by storing the timestamp instead.
crisbeto added a commit that referenced this pull request Feb 26, 2020
Reworks a few things in the calendar and adds the styling for the date range. A couple of notes:
* This isn't the final UX of when start/end ranges will be selected. I wanted to have most of the functionality in place before playing around with the UX.
* This approach currently has an issue where the range won't go from one month into another properly. The problem is that the date cells store the current day internally. I'll make a follow-up PR that'll address the issue by storing the timestamp instead.
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Mar 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants