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

_hidePrevMonthArrow should hide with css instead of style to not brake flexbox layout #681

Closed
pastinepolenta opened this issue Mar 14, 2017 · 0 comments

Comments

@pastinepolenta
Copy link

pastinepolenta commented Mar 14, 2017

Setting a minDate the prev month arrow hides. This is good but we should have more control on the way that the arrow is hidden. In my case, I am styling the entire calendar with flexbox and removing the arrow from the DOM causes a misalignment of the month name. It would be better to add a class like "flatpickr-hide" so that it can be easily overridden via CSS.

Here a fiddle: the month should stay center. I could achive that with prevMonth display block visibility hidden.
https://jsfiddle.net/stilllife/4fuwnLt6/

Any browser or OS

Alfredo-Delgado pushed a commit to Alfredo-Delgado/flatpickr that referenced this issue Feb 12, 2018
Alfredo-Delgado pushed a commit to Alfredo-Delgado/flatpickr that referenced this issue Mar 12, 2018
Alfredo-Delgado pushed a commit to Alfredo-Delgado/flatpickr that referenced this issue Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants