-
Notifications
You must be signed in to change notification settings - Fork 1
SidebarNav #45
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
SidebarNav #45
Conversation
} | ||
} | ||
|
||
@keyframes collapseSidebarNav { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was animation necessary vs a transition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For mobile, I needed to remount it under a Modal, so the transition doesn't get a chance to play. This fakes the transition, running the expand on mount inside the modal and the collapse on normal mount. Thankfully it still worked too for the desktop case, though I'm realizing now I probably could have kept the transition for that case and kept the keyframe stuff only for mobile...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah of course, that makes sense
looks good in ladle, just left a question |
https://openstax.atlassian.net/browse/DISCO-29