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 - fixed viewports: responsiveness #30695

Open
1 task
leomayer opened this issue Mar 24, 2025 · 5 comments
Open
1 task

Sidenav - fixed viewports: responsiveness #30695

leomayer opened this issue Mar 24, 2025 · 5 comments
Labels
area: material/sidenav cannot reproduce The team is unable to reproduce this issue with the information provided needs: clarification The issue does not contain enough information for the team to determine if it is a real bug

Comments

@leomayer
Copy link

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

I follow the example from the component-side and use the example for the fixed-viewport.

When I use the example for >=600px the height of the side-navbar is correct.
When I use the example for <600px the height of the side-navbar is correct.

Reproduction

StackBlitz https://vxisiwgo.stackblitz.io
Steps to reproduce:

  1. Drag the divider to adjust the screen width
  2. if < 600px the sidenavs height changes

Expected Behavior

Either display all the time the "aqua" background or never.

Actual Behavior

"aqua" background only when view-width <600px

Environment

  • Angular: 19.2
  • CDK/Material: 19.2.
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):
@leomayer leomayer added the needs triage This issue needs to be triaged by the team label Mar 24, 2025
@wagnermaciel
Copy link
Contributor

Hi @leomayer the stackblitz you shared doesn't seem to be working. Could you try sending a new link?

@wagnermaciel wagnermaciel added cannot reproduce The team is unable to reproduce this issue with the information provided needs: clarification The issue does not contain enough information for the team to determine if it is a real bug area: material/sidenav and removed needs triage This issue needs to be triaged by the team labels Mar 24, 2025
@leomayer
Copy link
Author

@leomayer
Copy link
Author

@wagnermaciel does the last link work?

@mrmokwa
Copy link

mrmokwa commented Mar 27, 2025

The toobar height is changing based on the size of the viewport, as expected from MD3.
If you want the sidenav content to adapt based on the size of the screen, make it flex and it should fix the problem.

@leomayer
Copy link
Author

I don't talk about the mat-sidenav-content I talk about the height of mat-sidenav itself.

If I would follow your logic then the aqua background shouldn't appear OR shrink and grow with the width of the viewport. Which seems quite strange and doesn't act three way you've described.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/sidenav cannot reproduce The team is unable to reproduce this issue with the information provided needs: clarification The issue does not contain enough information for the team to determine if it is a real bug
Projects
None yet
Development

No branches or pull requests

3 participants