File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ class DatePicker extends Component {
3939 * prop with `value` taking precedence.
4040 */
4141 defaultDate : PropTypes . object ,
42+ /**
43+ * Override the inline-styles of DatePickerDialog's Container element.
44+ */
45+ dialogContainerStyle : PropTypes . object ,
4246 /**
4347 * Disables the year selection in the date picker.
4448 */
@@ -262,6 +266,7 @@ class DatePicker extends Component {
262266 className,
263267 container,
264268 defaultDate, // eslint-disable-line no-unused-vars
269+ dialogContainerStyle,
265270 disableYearSelection,
266271 firstDayOfWeek,
267272 locale,
@@ -298,6 +303,7 @@ class DatePicker extends Component {
298303 autoOk = { autoOk }
299304 cancelLabel = { cancelLabel }
300305 container = { container }
306+ containerStyle = { dialogContainerStyle }
301307 disableYearSelection = { disableYearSelection }
302308 firstDayOfWeek = { firstDayOfWeek }
303309 initialDate = { this . state . dialogDate }
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ class DatePickerDialog extends Component {
1313 autoOk : PropTypes . bool ,
1414 cancelLabel : PropTypes . node ,
1515 container : PropTypes . oneOf ( [ 'dialog' , 'inline' ] ) ,
16+ containerStyle : PropTypes . object ,
1617 disableYearSelection : PropTypes . bool ,
1718 firstDayOfWeek : PropTypes . number ,
1819 initialDate : PropTypes . object ,
@@ -97,6 +98,7 @@ class DatePickerDialog extends Component {
9798 DateTimeFormat,
9899 cancelLabel,
99100 container,
101+ containerStyle,
100102 disableYearSelection,
101103 initialDate,
102104 firstDayOfWeek,
@@ -130,7 +132,6 @@ class DatePickerDialog extends Component {
130132 return (
131133 < div { ...other } ref = "root" >
132134 < Container
133- { ...other }
134135 anchorEl = { this . refs . root } // For Popover
135136 animation = { PopoverAnimationFromTop } // For Popover
136137 bodyStyle = { styles . dialogBodyContent }
@@ -139,7 +140,7 @@ class DatePickerDialog extends Component {
139140 repositionOnUpdate = { true }
140141 open = { open }
141142 onRequestClose = { this . handleRequestClose }
142- style = { styles . dialogBodyContent }
143+ style = { Object . assign ( styles . dialogBodyContent , containerStyle ) }
143144 >
144145 < EventListener
145146 target = "window"
You can’t perform that action at this time.
0 commit comments