Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular Material Progress bar not working - produces dotted lines

I am trying to create a contact form in Angular and I wish to display an indeterminate progress bar using Angular Material when the user clicks on submit.

I followed the steps mentioned on the official Angular Material site (https://material.angular.io/components/progress-bar/overview). However, when I include it in my web application, the progress bar simply shows up as dotted lines.

PFB screenshot displaying the issue:

[UI Screenshot1

Code Snippet:

VS Code screenshot

Can anyone please advise why does Angular-Material progress bar behave this way and the possible solutions for it?

like image 589
linuscastelino Avatar asked Aug 31 '25 17:08

linuscastelino


1 Answers

Solved! I had missed out on including the pre-built theme in the root css file.

Adding @import "~@angular/material/prebuilt-themes/indigo-pink.css"; in style.css resolved the issue and the progress bar started working as expected.

like image 198
linuscastelino Avatar answered Sep 03 '25 11:09

linuscastelino