-
Notifications
You must be signed in to change notification settings - Fork 393
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
Cannot specify className of input on DateInput #404
Comments
My proposal is something like...
I haven't used |
You probably shouldn't be adding the |
That is definitely what I want to do. Bootstrap targets the See their BaseInput: https://github.com/react-bootstrap/react-bootstrap/blob/master/src/InputBase.js
All inputs get As the styles are vendor styles I can't add a css style to target input of a child without copying the styles from bootstrap and adding them into my custom css. |
As a maintainer of react-bootstrap I am aware of how it works ;) Adding |
I stand corrected. :) I see now I missed a crucial step where I need to import the styles for this repo as well. Embarassing. |
Sorry to bring this back up, as it's 5 years later. I am trying to format the date select so that it's a "floating label" which I have a lot of hackfu styles to make it happen. I am not sure if there is a simpler way to make the DatePicker a floating label component. How this relates to the issue above also comes to play when I want to use form validation and make the date required. The required can be passed through using the inputProps but because the isn't a This PR looks like it gave a way of passing the className down: #1004 Any thoughts? |
I'm trying to include the DateTimePicker, which uses DateInput, into my existing solution that uses react-bootstrap. I want to have consistent styling on my inputs, which relies on my input having a class
.form-control
.I don't see any means of including a class on the input via props. Can I suggest that we add this?
The text was updated successfully, but these errors were encountered: