Repository navigation
fix(ui) : keep mobile navigation menu sticky while scrolling - #9344
TheCoderGeekSquadLeader wants to merge 3 commits into
Conversation
Signed-off-by: TheCoderGeekSquadLeader <lepluscultive@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
AugustinMauroy
left a comment
There was a problem hiding this comment.
okay it's work. but I pretty sure we can achieve this by only using css instead of strange js to modify style
Thanks for the review and the feedback ! Noted, I'll remove the JS style manipulation and handle this purely with CSS, then push an update. |
Signed-off-by: TheCoderGeekSquadLeader <lepluscultive@gmail.com>
ovflowd
left a comment
There was a problem hiding this comment.
What's the need of this? Why do we need sticky headers on mobile? This will cause the header to use much of the already very limited Viewport we have on mobile.
Sorry, I'm -1 with this change 😅
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9344 +/- ##
==========================================
- Coverage 87.12% 87.09% -0.04%
==========================================
Files 92 92
Lines 6656 6656
Branches 405 405
==========================================
- Hits 5799 5797 -2
- Misses 853 855 +2
Partials 4 4 ☔ View full report in Codecov by Harness. |
📦 Build Size ComparisonSummary
Changes🔄 Modified Routes (4)
|
Description
On mobile viewports, opening the navigation menu and scrolling down a long page causes the header and open menu to scroll out of view, forcing users to scroll back to the top to navigate or close the menu.
This PR updates the mobile navigation behavior so it remains accessible while scrolling:
Validation
390pxwidth) and open the hamburger menu.Related Issues
Fixes #<ISSUE_NUMBER>
Check List
pnpm formatto ensure the code follows the style guide.pnpm testto check if all tests are passing.pnpm buildto check if the website builds without errors.