Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React botstrap date picker - customization

I am trying to customize the react-bootstrap-daterangepicker in the following way:

I want to use different background colors for state when the dates in range are selected and when the user is only hovering to select the dates.

On the screenshot shown below, you can see that wen I hover over the dates, the selected range days are light blue color.

enter image description here

Same background color is when I actually select the desired range, only difference is the background color of the last day in range:

enter image description here

Is there a way to make different background collor for those 2 states above? The problem is that in both states the days that are in range have same classes:

.in-range

Any help is appreciated!

like image 993
boandriy Avatar asked Jul 25 '26 12:07

boandriy


1 Answers

Watching this example I see class .start-datefor first day in range and .end-date for last day in range. May you can try manipulating these classes.

like image 182
Andrea - codemillers.com Avatar answered Jul 28 '26 01:07

Andrea - codemillers.com



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!