Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
feat(datepicker): add a year view
Browse files Browse the repository at this point in the history
Adds the ability for users to switch years quicker by clicking on the month header.
Cheers to @mhchen for helping me get started.

Fixes #4251.
  • Loading branch information
crisbeto committed May 16, 2016
1 parent ce006cf commit a0117df
Show file tree
Hide file tree
Showing 15 changed files with 1,633 additions and 779 deletions.
13 changes: 4 additions & 9 deletions src/components/datepicker/calendar-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,13 @@
}
}

// The CSS class `md-focus` is used instead of real browser focus for accessibility reasons
// (the root md-calendar holds browser focus).
.md-calendar-date.md-focus {
.md-calendar-date-selection-indicator {
background: '{{background-hue-1}}';
.md-calendar-date-selection-indicator {
.md-calendar-date.md-focus &,
&:hover {
background: '{{background-300}}';
}
}

.md-calendar-date-selection-indicator:hover {
background: '{{background-300}}';
}

// Selected style goes after hover and focus so that it takes priority.
.md-calendar-date.md-calendar-selected-date,
.md-calendar-date.md-focus.md-calendar-selected-date {
Expand Down
Loading

0 comments on commit a0117df

Please sign in to comment.