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

DatePickerInput integrating to material-ui TextField making the UI similar to TextField #138

Open
ajay1008 opened this issue Nov 16, 2017 · 1 comment

Comments

@ajay1008
Copy link

Hy,

I have added and integrated the DatePickerInput component, I am using it in a form, of Material-ui's component, so I want to make the DatePickerInput field effect / UI similar to material-ui's TextField; like when a focus is provided over the input a thin border-bottom ripple effect is created., the same I want to achieve it for DatePickerInput.

Presently its showing more of button / normal textfield.

DatePickerInput Component:

<DatePickerInput
     onChange={this.onChange}
     value={this.state.selectedDate}
     className='rc-datepicker-custom'
     startMode="year"
     position="top"
   />

Attached the Screenshot for the same.

Please suggest.

yf-pinfo


Thank you.

@FrancescoCioria
Copy link
Contributor

Hi @ajay1008 ,

To get a material-ui look it should be enough adding some overrides to the default style.

You can do this in a custom .css file and by overriding these css rules: https://github.com/buildo/rc-datepicker/blob/master/src/style.scss#L135-L238

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants