This adds section-specific classes to the links/toggles created by NavMenu, following the model of Toolbox. This allows for more CSS customizations, e.g., adding icons to NavMenu dropdown-toggles in the navbar.
For a section with menuid as its id:
The wrapper <div> gets additional class menuid-dropdown.
The toggle button <a> gets additional class menuid-toggle.
The existing code already assigns class menuid to the <div> containing the menu items (for sections that have a non-empty list of items). This behavior has not been changed.
For example, the navigation section has id p-navigation, so:
its wrapper <div> now gets class p-navigation-dropdown;
the toggle button now gets class p-navigation-toggle;
This adds section-specific classes to the links/toggles created by
NavMenu
, following the model ofToolbox
. This allows for more CSS customizations, e.g., adding icons to NavMenu dropdown-toggles in the navbar.For a section with
menuid
as its id:<div>
gets additional classmenuid-dropdown
.<a>
gets additional classmenuid-toggle
.The existing code already assigns class
menuid
to the<div>
containing the menu items (for sections that have a non-empty list of items). This behavior has not been changed.For example, the
navigation
section has idp-navigation
, so:<div>
now gets classp-navigation-dropdown
;p-navigation-toggle
;p-navigation
.