I want to add a css style to a NgbProgressbar and I'm having trouble doing so. Specifically, I want to give a custom color to the progress bar. Using the "Contextual progress bars" demo at https://ng-bootstrap.github.io/#/components/progressbar, the code for the src/progressbar-basic.ts file is:
import {Component} from '@angular/core';
@Component({
selector: 'ngbd-progressbar-basic',
templateUrl: 'src/progressbar-basic.html',
styles: [`
ngb-progressbar {
margin-top: 5rem;
}
`]
})
export class NgbdProgressbarBasic {
}
Inspecting the components in a browser, the background-color style for the progress bar is controlled by .bg-success and .progress-bar. Adding
.progress-bar {
background-color:#ff9900;
}
to a css file attached to the index.html file makes the desired change, but I'm trying to add it only here, rather than globally.
Adding it as done for the ngb-progressbar margin-top style above doesn't seem to work, though I don't see any effect of the margin-top style either. I've turned off the type="success" type statements in progressbar-basic.html to keep them from conflicting.
How can one modify the progressbar-basic.ts code above to attach a style to the progress-bar inside the NgbProgressbar?