-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Fix: Side menu always displays #3064
Fix: Side menu always displays #3064
Conversation
Code Climate has analyzed commit 9d6c238 and detected 0 issues on this pull request. View more on Code Climate. |
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.
Can we make it so on initial load (so no cookie was set) it's not visible?
Try it in incognito to see what I mean.
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.
The previous issue is fixed, but it does not behave correctly.
It's still open on subsequent navigation.
CleanShot.2024-07-29.at.13.50.30.mp4
@adrianthedev I preserved the old behaviour: 2024-07-29.20-18-24.mp4However, when the page loads and the user hasn't toggled the sidebar yet, the sidebar "pops" open rather than "sliding out" because the js executes a little later than the css and the user can't see the transition. After this subsequent toggles do show the transition. I'm not sure how to keep the sidebar hidden on mobile at first render and then also have it show the transition. |
The CSS transitions are never getting executed. The JS removes then adds Let's force a reflow on it. |
Description
This PR ensures that the correct cookie is set after a user toggles the sidebar
Fixes #3059
Checklist:
Screenshots & recording
2024-07-29.14-10-08.mp4
Manual review steps
Manual reviewer: please leave a comment with output from the test if that's the case.