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

refactor(datepicker): move weekdays into table header #4129

Merged
merged 7 commits into from
Apr 19, 2017

Conversation

mmalerba
Copy link
Contributor

No description provided.

@mmalerba mmalerba requested a review from jelbourn April 18, 2017 00:05
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 18, 2017
@fxck
Copy link
Contributor

fxck commented Apr 18, 2017

Is this the last thing needed before it gets merged to master?

@mmalerba
Copy link
Contributor Author

mmalerba commented Apr 18, 2017

@fxck It's getting close but I still want to replace SimpleDate with something that allows users to plug in moment.js or other date implementations before merging into master.

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM, just a few nits

_weekdays: string[];

constructor(private _locale: CalendarLocale) {
this._weekdays = this._locale.narrowDays.slice(this._locale.firstDayOfWeek)
Copy link
Member

Choose a reason for hiding this comment

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

Add a comment like

// Rotate the labels for days of the week based on the configured first day of the week.

position: relative;
height: $mat-calendar-header-divider-width;

&::after {
Copy link
Member

Choose a reason for hiding this comment

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

Add a comment explaining what the ::after is used for?

@mmalerba mmalerba merged commit 8974677 into angular:datepicker Apr 19, 2017
mmalerba added a commit that referenced this pull request Apr 20, 2017
* fix broken tests

* md-calendar-table --> [md-calendar-body]

* move md-calendar-body to tbody element

* move weekdays into table header

* finishing touches

* fix year view padding

* add some comments
mmalerba added a commit that referenced this pull request Apr 29, 2017
* fix broken tests

* md-calendar-table --> [md-calendar-body]

* move md-calendar-body to tbody element

* move weekdays into table header

* finishing touches

* fix year view padding

* add some comments
mmalerba added a commit that referenced this pull request May 5, 2017
* fix broken tests

* md-calendar-table --> [md-calendar-body]

* move md-calendar-body to tbody element

* move weekdays into table header

* finishing touches

* fix year view padding

* add some comments
mmalerba added a commit that referenced this pull request May 9, 2017
* fix broken tests

* md-calendar-table --> [md-calendar-body]

* move md-calendar-body to tbody element

* move weekdays into table header

* finishing touches

* fix year view padding

* add some comments
@mmalerba mmalerba deleted the dp-cleanup branch April 3, 2018 15:17
@angular-automatic-lock-bot
Copy link

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 Sep 8, 2019
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants