react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Styling Range

Open maybecrimson opened this issue 4 years ago • 6 comments

Hello. I am in need of style the range in the calendar: a continuous background colour from start to end with border radius at the start/end of the row if is the case. Thank you.

maybecrimson avatar Dec 11 '20 13:12 maybecrimson

Did you ever figure this one out? @maybecrimson

enaluz avatar Jan 28 '21 06:01 enaluz

+1

siddharthshankarpaul avatar Jun 11 '21 13:06 siddharthshankarpaul

Is there any progress or workaround? Really need this :/

MVR5991 avatar Oct 26 '21 14:10 MVR5991

No news about this topic 😭

maybecrimson avatar Nov 18 '21 20:11 maybecrimson

+1, a class for the end of selection range is missing.

m-suchorski avatar May 25 '22 12:05 m-suchorski

Not sure if this solves your problem. You can use the range classes to style the range. Obviously each day is a single element, so I had a problem with radius and background-color on start and end day of range. However I was able to solve it using radial-gradient:

.react-datepicker__day--range-end { background: radial-gradient(circle 16.5px, rgb(1, 160, 80) 94%, rgb(1, 160, 80, 0.1)); color: #fff; border-top-right-radius: 100%; border-bottom-right-radius: 100%; }

image

nc-mdh avatar Sep 01 '22 10:09 nc-mdh