I've been attempting to customize the appearance of the PanelMenu component
So far, I've successfully changed the overall background color.
https://i.sstatic.net/MGIia.png
My goal is to set the main menu items to white and the submenus to black
Additionally, when an element is focused, I want to change the color from blue to a different shade
<p-panelMenu [model]="items" [style]="{'width':'100%'}" [multiple]=false></p-panelMenu>
CSS
::ng-deep .ui-panelmenu .ui-widget {
background-color: #5F5F5F !important;
font-family: 'BNPPSans'
}
::ng-deep .ui-menuitem-text {
font-family: 'BNPPSans';
};
I've tried multiple combinations following the documentation but none have yielded results. I can see changes in the dev tools here
https://i.sstatic.net/z1bBR.png
However, when transferring the changes to the CSS file, nothing seems to happen
::ng-deep .ui-panelmenu .ui-panelmenu-header.ui-state-active, .ui-panelmenu .ui-panelmenu-header.ui-state-active a{
background-color: red !important;
};
Here's a link to the StackBlitz (although there seems to be overlapping items for some reason)