0

I'm using react-day-picker and in here the custom modifier styles are added to outside days of month.

How can I avoid adding those styles to dates which is disabled and outside of the month?

Ishara Madhawa
  • 3,549
  • 5
  • 24
  • 42
mr93
  • 123
  • 2
  • 9

1 Answers1

2

You can restrict your CSS selector with :not('.DayPicker-Day--outside'), for example:

.DayPicker-Day.DayPicker-Day--thursdays:not('.DayPicker-Day--outside') {
  background: yellow;
}
gpbl
  • 4,721
  • 5
  • 31
  • 45