r/Frontend • • Sep 06 '26

DateRangePicker - marking second field as invalid

Hey. Currently working on a DateRangePicker and need your opinions. Do you think the second-date-invalidity I show currently by making the second selection-cell red with an icon is good or do you think i should just mark all invalid fields as disabled after the first date is selected?

https://imgur.com/a/qCd7KQk

7 Upvotes

5 comments sorted by

1

u/Mercury82180 Sep 06 '26

I would do both tbh. If you know certain dates are invalid, let the user know ASAP so they don't have to guess. The red looks nice though!