Following the pattern in T252467 it is considered to add unique CSS classes to each menu (in toolbars) and portlet (in sidebar).
Targets
- Decide whether these classes will be public API or internal.
- Decide what naming pattern to use for menus: #p-personal, etc.
- Decide what naming pattern to use for sidebar portlets: #p-lang, #p-tb, etc.
Complete list of ids and proposed patterns
- '#p-personal' => '.menu-personal', - '#p-namespaces' => '.menu-namespaces', // Left side: Page, Discuss - '#p-variants' => '.menu-variants', // Left side: dropdown - '#p-views' => '.menu-actions', // Right side: View, Edit, Edit source, History, Watchstar - '#p-cactions' => '.menu-more', // Right side: "More" dropdown - '#p-tb' => '.sidebar-toolbox', - '#p-lang' => '.sidebar-languages', - '#p-*' => '.sidebar-*' // All other sidebar portal
Related
nav#p-personal T252467: Notify editors and users to update their Vector gadgets and user scripts/styles on portal CSS selector simplification
#p-personal ul: T252447: Notify gadget users to update Vector scripts and styles
Follow-up to: T249372: [Dev] DRY up the menu templating code
Discussion started at: patch 605298