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

Customize CSS

Open AliNazariii opened this issue 5 years ago • 2 comments

Could you please give me an example of changing the default styles?

Thanks in advance.

AliNazariii avatar Aug 13 '20 13:08 AliNazariii

hello, I have this problem too. i mean this is an amazing component but i can't even change the dafault grey border from styles. i don't know if i'm really noob or this is a very complicated project to customize. really appreciate if someone can help. thanks in advance

omidazm94 avatar Jan 10 '21 07:01 omidazm94

I have no idea that this is the best way or not, but I did change the style by overriding them like this. You can also add some custom classes to the DatePicker component and change those as well. @omidazm94 .tether-element { z-index: 1; .calendarContainer { width: 280px; padding: 5px; background-color: #242428; } }

Masoud-94 avatar May 02 '21 08:05 Masoud-94