React-datepicker: Possible to change blue of selected date and gray of placeholder?

Created on 12 Dec 2017  路  3Comments  路  Source: Hacker0x01/react-datepicker

Hi React datepicker,
Is it possible to change the blue color of the selected date in the calendar? In addition, I would like to change the shade of gray for the placeholder text. I did not see the examples doing it, so was just wondering if it was possible. Thanks!

Sincerely,
Laura

question

Most helpful comment

Yes, you can change it in css file, which is included.

All 3 comments

Yes, you can change it in css file, which is included.

hi, thanks for the libray, i'm trying to change color of selected day, i notice the react-datepicker.css under /dist, and also sass files. i tried to copy the datepicker's stylesheet and add some changes, then i tried to import it in my code, but it's not working.

whats the process for changing the color of selected day? @flaurida @alex-shamshurin

@lejoss Without knowing exactly what you did, it could be any number of things... It sounds like you're on the right track though. If you're including both the default style and your custom style, you may need to check on ordering or specificity. https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity

If you need help learning CSS, there are plenty of resources throughout the web.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rsouthpaw picture rsouthpaw  路  3Comments

ali-master picture ali-master  路  3Comments

dhruvparmar372 picture dhruvparmar372  路  3Comments

ahribori picture ahribori  路  3Comments

pinturic picture pinturic  路  3Comments