Skip to content

bug(mat progress bar): Progess does not work properly inside mat side nav  #26316

@muhammadraghib10

Description

@muhammadraghib10

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 am using a simple progressbar inside matside nav. On value=100, default behaviour should be showing 100 % completion instead it is only showing completion from 50% to 100%. It works as expected in matside nav content.

<mat-sidenav-container>
   <mat-sidenav mode="side" 
   [(opened)]="opened">
   Start
   <mat-progress-bar value="100"></mat- 
   progress-bar>
   </mat-sidenav>
<mat-sidenav-content>
Main
<mat-progress-bar value="100"></mat- 
progress-bar>
</mat-sidenav-content>

Reproduction

Steps to reproduce:

  1. Create mat sidenav container with mat-sidenav and mat-sidenav-content.
  2. Place progress bar in mat-sidenav and mat-sidenav-content.
  3. Set both progress bar values to 100.

Expected Behavior

Both progess bars should show 100% value.

Actual Behavior

The progress bar inside mat-sidenav is only shoing 50 to 100.
Error

Environment

  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions