Skip to content

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

Merged
merged 16 commits into from
Aug 9, 2024
Merged

SidebarNav #45

merged 16 commits into from
Aug 9, 2024

Conversation

jivey
Copy link
Member

@jivey jivey commented Aug 6, 2024

}
}

@keyframes collapseSidebarNav {
Copy link
Contributor

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?

Copy link
Member Author

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...

Copy link
Contributor

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

@bethshook
Copy link
Contributor

looks good in ladle, just left a question

@jivey jivey merged commit 49a4aac into main Aug 9, 2024
2 checks passed
@jivey jivey deleted the sidebarnav branch August 9, 2024 14:56
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

Successfully merging this pull request may close these issues.

2 participants