Page 1 of 1

Can't set background-color of panel header

Posted: 11 Jan 2019, 17:44
by paparoacho
Tried:

<p-panel styleClass="bluePanel" header="Online Confirmations">

with

.bluePanel .ui-panel-titlebar {
background-color: red;
}

What am I doing wrong!?

Many thanks
Tony

Re: Can't set background-color of panel header

Posted: 15 Jan 2019, 10:59
by yigitfindikli
Hi,
Can you try this;

Code: Select all

@Component {
   ...
   encapsulation: ViewEncapsulation.None,
}

Code: Select all

.bluePanel .ui-panel-titlebar {
background-color: red !important;
}