Skip to content
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

Sidenav cannot be scrolled correctly when used with Navbar #452

Open
zackchengyk opened this issue Apr 17, 2024 · 0 comments
Open

Sidenav cannot be scrolled correctly when used with Navbar #452

zackchengyk opened this issue Apr 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zackchengyk
Copy link

zackchengyk commented Apr 17, 2024

Component

Sidenav

Describe the bug

The Sidenav component cannot be scrolled correctly when used with the Navbar.

To Reproduce

  1. Use the Sidenav and Navbar together, such that the Sidenav is below the Navbar.
  2. Make sure that the Sidenav has enough children such that it can be scrolled (or just reduce your screen height).
  3. Try to scroll. You will find that the bottom-most element is partially obscured.

Cause

Sidenav's top level div element has no set height, but the nav element one level down is set to height: 100vh (code).

Screen Recording

sidenav-scroll.mp4
@zackchengyk zackchengyk added the bug Something isn't working label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant