My app runs PrimeNG 1.1.2 and Angular 2.4.1. In my template I use a PrimeNG tab view with corresponding tab panels and respective headers. For a certain reason I want to style the appearance of the tab panel header. For instance, say I want to set its font color to green:
<p-tabPanel header="Bezier Curve" [selected]="true"
[headerStyle]="{'color': 'green'}">
However, this style does not apply and the font color doesn't change
Any pointers what I am missing?
Edit:
font-color replaced by color
There's no CSS property with name
font-color, you are looking forcolor:W3Schools clearly states:
Edit:
Problem is the following - after template rendering, header text is located between
atags which means you have to create CSS class that will change text color surrounded byatags inside your header:And then use
headerStyleClassattribute instead ofheaderStyleto apply CSS class: