diff --git a/src/components/datepicker/calendar-theme.scss b/src/components/datepicker/calendar-theme.scss index b2862b05c79..c8da1fff066 100644 --- a/src/components/datepicker/calendar-theme.scss +++ b/src/components/datepicker/calendar-theme.scss @@ -16,6 +16,10 @@ .md-calendar-date.md-calendar-date-today { color: '{{primary-500}}'; // blue-500 + + &.md-calendar-date-disabled { + color: '{{primary-500-0.6}}'; + } } // The CSS class `md-focus` is used instead of real browser focus for accessibility reasons @@ -39,4 +43,8 @@ } } + .md-calendar-date-disabled, + .md-calendar-month-label-disabled { + color: '{{background-400}}'; // grey-400 + } } diff --git a/src/components/datepicker/calendar.js b/src/components/datepicker/calendar.js index cf52f3068b3..6b0249360eb 100644 --- a/src/components/datepicker/calendar.js +++ b/src/components/datepicker/calendar.js @@ -34,12 +34,19 @@ */ var TBODY_HEIGHT = 265; + /** + * Height of a calendar month with a single row. This is needed to calculate the offset for + * rendering an extra month in virtual-repeat that only contains one row. + */ + var TBODY_SINGLE_ROW_HEIGHT = 45; + function calendarDirective() { return { template: '
' + '