sidenav: Unable to understand the usage of autosize attribute. It shows no change if applied
Author: naiduraaCreated Sep 17, 2026Updated Sep 17, 2026
Labelsneeds triagearea: material/sidenavgemini-triaged
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
when autosize attribute is added, there are no examples which shows what difference it shows.
Reproduction
StackBlitz link: https://stackblitz.com/run?file=src%2Fexample%2Fsidenav-autosize-example.ts&startScript=start Steps to reproduce:
- No difference seen, when we add or when we remove the autosize attribute
Expected Behavior
Demo an example which shows an actual difference in its usage
Actual Behavior
Demo an example which shows an actual difference in its usage
Environment
- Angular: 20+
- CDK/Material: 20+
- Browser(s): chrome
- Operating System (e.g. Windows, macOS, Ubuntu): windows
Source: angular/components