Struggling to style the header of a datatable in my Angular project using PrimeNG components. Despite trying various solutions, I am unable to override the existing styles.
Even attempting to implement the solution from this PrimeNG CSS styling question on Stack Overflow hasn't worked for me.
I have a list-component with a datatable:
<p-dataTable #dt [value]="auftraege" [rows]="10" [paginator]="true" [(first)]="first" [sortMode]="multiple"
[loading]="loading" loadingIcon="fa-spinner" class="beatDatatable">
<p-header>{{auftraege.length}} Aufträge</p-header>
<p-column field="cat" header="Datum/Uhrzeit" [sortable]="true">
<ng-template pTemplate="body" let-order="rowData">
{{order.cat | date:'yMdjm'}}
</ng-template>
</p-column>
<p-column field="schadennummer" header="Schadennummer" [sortable]="true"></p-column>
<p-column field="kennzeichen" header="Kennzeichen" [sortable]="true"></p-column>
<p-column field="jobId" header="Euconnr." [sortable]="true"></p-column>
<p-column field="externeid" header="Auftragsnr." [sortable]="true"></p-column>
<p-column field="status.anzeige" header="Status" [sortable]="true"></p-column>
</p-dataTable>
Efforts to override the styles in my list-component.css file have been unsuccessful. My goal is to change the color of the header, but even copying styles from the browser inspector hasn't helped. If anyone has any insights on how to achieve this, I would greatly appreciate it.