Skip to content
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

Allow selected styling while being disabled #77

Merged
merged 1 commit into from Apr 14, 2024

Conversation

namolnad
Copy link
Contributor

As part of #76, this PR proposes to allow the selectedBtnProps even if a given dayOfMonth is disabled (e.g. being below minDate). The element remains disabled, both functionally and visually, yet allows the component to indicate that there is indeed a selected date (and/or likely range) that exists outside of the currently selectable/valid range.
An example of what this looks like is shown here:
Screenshot 2024-03-22 at 4 14 38 PM

I'd imagine this is closer to expected behavior, so don't think it's necessarily required to add additional props to allow this behavior sometimes, but am certainly open to that if you disagree.

Thanks for considering!

@namolnad
Copy link
Contributor Author

@aboveyunhai I just wanted to check in on this to see if you had thoughts about this PR and whether it may be worth moving forward. Thanks!

@aboveyunhai
Copy link
Owner

@aboveyunhai I just wanted to check in on this to see if you had thoughts about this PR and whether it may be worth moving forward. Thanks!

I think it's fine. I will just merge it and see if ppl complaint about it, if so then turn into optional or something.

@aboveyunhai aboveyunhai merged commit 9a7a95c into aboveyunhai:main Apr 14, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants