diff --git a/src/DatePicker/CalendarYear.js b/src/DatePicker/CalendarYear.js index 781352de012ca1..1875fcb1a491b2 100644 --- a/src/DatePicker/CalendarYear.js +++ b/src/DatePicker/CalendarYear.js @@ -76,20 +76,25 @@ class CalendarYear extends Component { const years = this.getYears(); const backgroundColor = this.context.muiTheme.datePicker.calendarYearBackgroundColor; const styles = { - backgroundColor: backgroundColor, - height: 'inherit', - lineHeight: '35px', - overflowX: 'hidden', - overflowY: 'scroll', - position: 'relative', - display: 'flex', - flexDirection: 'column', - justifyContent: 'center', + root: { + backgroundColor: backgroundColor, + height: 'inherit', + lineHeight: '35px', + overflowX: 'hidden', + overflowY: 'scroll', + position: 'relative', + display: 'flex', + flexDirection: 'column', + justifyContent: 'center', + }, + child: { + height: 'inherit', + }, }; return ( -
-
+
+
{years}