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

feat(datepicker): year view, open on focus, bug fixes #8472

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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