Fix: Sidebar nav bugs#1447
Conversation
|
/preview |
|
Please find a preview at: https://staging.nodejs.dev/1447/ |
|
Thankyou for the review @rodion-arr . I have fixed both the issues, could you please review them once. Seems like the width of sidenav was changing because of different classNames of |
|
/preview |
|
Please find a preview at: https://staging.nodejs.dev/1447/ |
There was a problem hiding this comment.
It seems like the package-lock.json was modified while you did npm install. We are already using dependabot for updating dependencies in lockfile, so can you please revert this.
Also, it seems like you need to update the snapshots for the tests to pass.
Thanks
Codecov Report
@@ Coverage Diff @@
## main #1447 +/- ##
=======================================
Coverage 85.98% 85.98%
=======================================
Files 73 73
Lines 792 792
Branches 216 216
=======================================
Hits 681 681
Misses 111 111
Continue to review full report at Codecov.
|
|
Please find a preview at: https://staging.nodejs.dev/1447/ |
|
Added sidenav bar to releases page as well, as mentioned in the updated description of the issue #1447 |
|
Please find a preview at: https://staging.nodejs.dev/1447/ |
|
Please find a preview at: https://staging.nodejs.dev/1447/ |
|
LGTM |
|
@benhalverson The mobile menu, is that supposed to be like the |
benhalverson
left a comment
There was a problem hiding this comment.
I think it's ok for now. Ideally it should match the /learn mobile menu.
|
I think we should wait for #1297 to be merged so that this PR finishes the about page once and for all |
| overflow-y: scroll; | ||
| position: fixed; | ||
| top: var(--nav-height); | ||
| top: calc(var(--nav-height) * 2); |
There was a problem hiding this comment.
I think you can remove this now 🙂
There was a problem hiding this comment.
Right, removing it.
| /* Needed since overflow: none will disable position: sticky on children */ | ||
| clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); | ||
| background-color: var(--color-fill-side-nav); | ||
| height: calc(100vh - var(--nav-height)); |
There was a problem hiding this comment.
These changes are seemingly breaking the /learn page on mobile (https://staging.nodejs.dev/1447/learn)
Can you keep the styling changes limited to about.scss only
There was a problem hiding this comment.
The cross button is not visible in the deployed version (https://nodejs.dev/learn), which restricts the user from closing the sidenav in mobile view.
There was a problem hiding this comment.
Great, thanks.
There was a problem hiding this comment.
Here the pending thing, is you need to revert these lines to their original state.
There was a problem hiding this comment.
Reverted back the above-mentioned changes and changes for extender class as both of these are being handled in #1448
|
Please find a preview at: https://staging.nodejs.dev/1447/ |


Description
To discuss:
The className of
<main>tag was not consistent across different pages of the tab because of which it was causing spacing issues and also when I tried to decrease the width to check for responsiveness of the website the article section was overlapping with the sidenav. To overcome that I gave all the<main>tags a consistent className of "grid-container", now that issues is fixed. I am attaching images for reference.Before:

After:

Related Issues
Fixes #1446