Skip to content

Change theme props. Separate disabledText with otherMonthText style #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
matinkaboli opened this issue Aug 30, 2023 · 1 comment
Open

Comments

@matinkaboli
Copy link

There's this property called disabledText which gets some classNames for each day.
The problem is that whenever I put minDate to new Date(), meaning that I want days before now to be disabled, and then give disabledTest some specific styles, the days for the next month get the same style as well. They appear disabled, even though user can click on them without changing the month.

To fix this, there should be a new property in the Themes called nextMonthText or oherMonthText or something similar that developers can use to specify the custom style of days in other months.

I'm using tailwind-datepicker-react@1.4.2

@lucasortigoso
Copy link

Hi @matinkaboli
I just caught by the same problem and adjusted the original code.
Check my adjusted version #61

image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants