The datatable styling relies on "role=row" and "role=columnheader" attributes, e.g.:
|
th[role="columnheader"].ui-state-default { |
Unfortunately, these attributes were removed in PrimeFaces 12 (primefaces/primefaces#9261), so the corresponding CSS properties no longer get applied.