Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DatePicker] Added className prop to DatePicker #4250

Merged
merged 1 commit into from
May 14, 2016
Merged
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
7 changes: 6 additions & 1 deletion src/DatePicker/DatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class DatePicker extends Component {
* Override the default text of the 'Cancel' button.
*/
cancelLabel: PropTypes.node,
/**
* The css class name of the root element.
*/
className: PropTypes.string,
/**
* Used to control how the Date Picker will be displayed when the input field is focused.
* `dialog` (default) displays the DatePicker as a dialog with a modal.
Expand Down Expand Up @@ -251,6 +255,7 @@ class DatePicker extends Component {
DateTimeFormat,
autoOk,
cancelLabel,
className,
container,
defaultDate, // eslint-disable-line no-unused-vars
disableYearSelection,
Expand All @@ -275,7 +280,7 @@ class DatePicker extends Component {
const formatDate = this.props.formatDate || this.formatDate;

return (
<div style={prepareStyles(Object.assign({}, style))}>
<div className={className} style={prepareStyles(Object.assign({}, style))}>
<TextField
{...other}
onFocus={this.handleFocus}
Expand Down