Styling of the datepicker is off
See original GitHub issueThe styling of the datepicker seems to be off, i’ve tried importing the css from the dist
folder directly and it didn’t work, any ideas? here’s how it looks like: https://ibb.co/gEPdep
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
jquery datepicker css styling disabled dates - Stack Overflow
What I would like to do is style the disabled dates that are in the current month so they are not the same...
Read more >How change css content from datepicker, pika-year is ...
want to change content in this class (is-disabled), but how I do it? have tried adding it in css editor, but still can't...
Read more >Css customization in Angular Datepicker component
Learn here all about Css customization in Syncfusion Angular Datepicker component ... With this CSS class, you can override existing styles of DatePicker....
Read more >Datepicker Widget - jQuery UI API Documentation
The datepicker widget uses the jQuery UI CSS framework to style its look and feel. If datepicker specific styling is needed, the following...
Read more >Adding Styles to the React Date Picker - DevCamp
In this video we're going to start by styling our date picker. ... and then in .picker let's just say input and then...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
so, as mentioned above problem is in webpack.config
localIdentName: [hash]
. There is couple ways to fix it:As i’m only using less for css imports i’ve ended with adding smth like this to my config
If you still want to use .css with css imports you’ll probably need some more sophisticated
test
regexp to mach only css files insidenode_modules/react-date-picker
I ran into this problem as well. The css-loader is indeed the issue (our localIdentName adds a hash to all classnames). I think the library can avoid this if it imports its css like so:
import styles from 'styles.css'
And then when giving classnames to components you access them from the imported styles object:
className={styles['whatever-class']}
Rather than using raw strings for classnames. This allows CSS loader to map the classnames correctly.