I am trying to style the p-header of primeng dialog box p-dialog component and am stuck at styling it. I want the whole header element to be red but instead just my text is getting red. Here is my code snippet:
Here is the result I am getting:
This is the desired output:
<p-dialog [(visible)]="popup.visible">
<p-header [ngStyle] = "{'background-color':'red'}">
{{popup.header}}
</p-header>
{{popup.message}}
</p-dialog>
I have also tried styleClass, ngClass , [style] getting no luck also
@Component({
encapsulation: ViewEncapsulation.None
})
works but I don't want to disable viewEncapsulation.

