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

Set DayPickerNavigation__horizontal height to 0 #1265

Merged
merged 1 commit into from
Jul 17, 2018

Conversation

majapw
Copy link
Collaborator

@majapw majapw commented Jul 17, 2018

I ran into a specific edge-case where it turns out that the navigation buttons have an implicit expectation that this value is set to 0. Thus, in an application where there is a top-level line height is set, the navigation and week headers would get shoved down especially when using custom navigation. This change addresses that issue while not affecting existing datepickers.

screen shot 2018-07-17 at 4 06 39 pm

to: @ljharb

@majapw majapw added the semver-patch: fixes/refactors/etc Anything that's not major or minor. label Jul 17, 2018
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this have a variation to cover this?

@majapw
Copy link
Collaborator Author

majapw commented Jul 17, 2018

@ljharb the variation would be... that there's a global style on all dom elements :/ I'm not super sure that there's a variation that covers this edge case that makes sense to include.

- For apps with a top-level line-height defined, not having this value set to zero will cause some weird vertical alignment
@majapw majapw force-pushed the maja-set-height-on-month-nav branch from d0d2139 to c3a62fa Compare July 17, 2018 23:33
@coveralls
Copy link

coveralls commented Jul 17, 2018

Coverage Status

Coverage remained the same at 84.453% when pulling c3a62fa on maja-set-height-on-month-nav into 93c5b98 on master.

@majapw majapw merged commit 052432c into master Jul 17, 2018
@majapw majapw deleted the maja-set-height-on-month-nav branch July 17, 2018 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-patch: fixes/refactors/etc Anything that's not major or minor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants