Can't set background-color of panel header

UI Components for Angular
Post Reply
paparoacho
Posts: 2
Joined: 18 Jun 2018, 11:27

11 Jan 2019, 17:44

Tried:

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

with

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

What am I doing wrong!?

Many thanks
Tony

yigitfindikli
Posts: 449
Joined: 08 Aug 2018, 14:09

15 Jan 2019, 10:59

Hi,
Can you try this;

Code: Select all

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

Code: Select all

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

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests