Hi. What exactly doesn't work? I think the demo is quite straightforward:
accordion-group.panel.customClass {
background-color: #5bc0de;
color: #fff;
}
If this doesn't help you, create a simple repo or plunkr so we'll be able to help you
to deal with angular's view encapsulation, you have to write your styles with :host >>> if you're using an external stylesheet for a component.
:host >>> .card.customClass,.card.customClass .card-header,.panel.customClass {
background-color: #5bc0de;
color: #fff;}
:host >>> .panel.customClass .panel-body {
background-color: #337aa7;
}
Or you can add your styles to global stylesheet or add encapsulation: ViewEncapsulation.None to your component definition.
We'll probably update the demo to make this moment clear
Thank you!
Most helpful comment
to deal with angular's view encapsulation, you have to write your styles with
:host >>>if you're using an external stylesheet for a component.Or you can add your styles to global stylesheet or add
encapsulation: ViewEncapsulation.Noneto your component definition.We'll probably update the demo to make this moment clear