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

Why is dayContainerStyle not applied on days not in the current month? #114

Open
NorthBlue333 opened this issue Sep 27, 2024 · 1 comment

Comments

@NorthBlue333
Copy link

NorthBlue333 commented Sep 27, 2024

Hi there,
Just trying to custom the date picker style.
Why are dates oustide of the current month not using the dayContainerStyle?

const containerStyle = isCurrentMonth ? dayContainerStyle : { opacity: 0.3 };

I have also other issues with styling some containers:

  • The DaySelector container has a top padding of 5 which is not editable; the workaround which works only with a fixed height is to set add 5 (the padding top value) to the desired height
  • The container inside the Header also has a padding which is not editable neither; the workaround is to put a negative margin on the Header container style
  • There is also no way to set justify-content: space-between on the main container, nor to add children directly in the main container; we could use a custom Calendar.tsx based on the package's one, but with children and custom styles props, is this the way?

Thanks!

@DimaIvashchuk
Copy link

  • 1 here

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