Page 1 of 1

Styling the toolbar

Posted: 30 Aug 2018, 13:22
by nikos6707
Hi.
I want to set new style for the toolbar widget.
How can i do that?
I've created into my component.css the following code:

Code: Select all

.toolbarS {
	margin: 0 auto;
	background-color: #324148;
}
and in my component.html the following code

Code: Select all

<p-toolbar styleClass="toolbarS" >
    <div class="ui-toolbar-group-left">
    </div>
        
    </div> -->
</p-toolbar>
But the background color is still gray.
Any idea?

Re: Styling the toolbar

Posted: 14 Sep 2020, 16:35
by batook
::ng-deep .p-toolbar.toolbarS {
margin: 0 auto;
background-color: #324148;
}

Re: Styling the toolbar

Posted: 22 Dec 2021, 01:26
by israeloriente
batook wrote:
14 Sep 2020, 16:35
::ng-deep .p-toolbar.toolbarS {
margin: 0 auto;
background-color: #324148;
}
🔥🚀