Cannot style megamenu label and panel label separately with pass through #297
-
I am trying to style the MegaMenu with PassThrough. I could change the background color, icon color, sub menu icon and the label on the menu (changed to white as in the attached image). However, when I apply a class to the label, it gets applied to the panel -> menu items as well. As a result, I cannot distinguish the label color on the menu and inside the panel (sub menus). Should these 2 elements be identified by different property names in future? How do I configure 2 different colors on labels of the main menu and those of the sub-menu-items. The image below does not show the sub-menus under User 1 User 2 ... because their fore color has changed (to white) after I have applied the class to the labels "Users", "Events", "Settings". Code
gets applied to all 'label' of the megamenu and hence cannot differentiate main-menu.label and content/panel.label with different colors. Environment: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The use of label options for both root and panel items has caused confusion. I will change the ones on the panel to Sorry for the confusion. |
Beta Was this translation helpful? Give feedback.
-
Fixed for the next version. primefaces/primevue#4690 |
Beta Was this translation helpful? Give feedback.
-
Hi, The same applies to the Menubar component as well. MegaMenu is all good now after the fix in 3.39. Appreciate your help !! |
Beta Was this translation helpful? Give feedback.
Fixed for the next version. primefaces/primevue#4690