Here's the Stackblitz showing the problem.
Code: Select all
<p-tabView>
<p-tabPanel header="First" headerStyleClass="redText">
<span class="redText">tab text should have been red, too...</span>
</p-tabPanel>
<p-tabPanel header="Second">
Second
</p-tabPanel>
<p-tabPanel header="Third">
Third
</p-tabPanel>
</p-tabView>
Code: Select all
.redText {
color: red;
}