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 changing background color of the header controls #260

Closed
samuel27m opened this issue Dec 23, 2020 · 5 comments
Closed

Allow changing background color of the header controls #260

samuel27m opened this issue Dec 23, 2020 · 5 comments

Comments

@samuel27m
Copy link

I couldn't find any way of setting the background color of the header controls, and can't see anything on documentation.
image

Is this a feature that needs to be implemented?

@helloWorld2020102
Copy link

you could use the monthYearHeaderWrapperStyle={{backgroundColor: 'red'}}
but this allows u to only give styles to the 'December 2020' portion

for those previous and next portions, I used

previousComponent={this.renderPreviouIcon()}
nextComponent={this.renderNextIcon()}

For the complete styling of the header, I didn't find any prop... Please let me know if you do...

@samuel27m
Copy link
Author

@helloWorld2020102 Thanks for the suggestion.
I tried that before already but no luck. Would be nice if we could just style the whole header. I was trying to achieve something like this:

image

But if there is currently no option for it I guess I can live with it, but would be nice if there was an option for the whole header - e.g. if I want to give margin between calendar and calendar header

@peacechen
Copy link
Collaborator

peacechen commented Dec 23, 2020

We will need a new prop for that (e.g. headerWrapperStyle). Please submit a PR if you have time to add it.

peacechen added a commit that referenced this issue Jan 1, 2021
@peacechen
Copy link
Collaborator

Published in 7.0.7
Happy New Year 🎆

@samuel27m
Copy link
Author

Thanks @peacechen :)

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

3 participants