Mega menu
MegaMenu is a large, expandable panel which opens from the main navigation. It displays and categorizes links to key application pages, allowing users to easily access a wide range of app features and content from a single menu. It organizes complex site structures into a visually clear, multi-column layout, enhancing user experience by reducing the number of clicks needed to find information.
Also known as: Multi-column menu, Expanded menu, Mega dropdown menu
| Salt package | @salt-ds/core |
|---|
- Wrap the mega menu in a
<nav>element to expose it as a navigation landmark.
MegaMenuPanelrenders a<div>withrole="region". Always provide anaria-labelthat describes the menu content (for example,aria-label="Solutions menu") so assistive-technology users can distinguish it from other landmarks on the page.
- Triggers and group links are unordered lists: use a
<ul>with each item in its own<li>. Reserve<ol>for when the sequence is meaningful and must be announced to assistive technology.
| Key | Function |
|---|---|
| Enter / Space / Down arrow |
|
| Escape |
|
| Tab |
|
| Shift + Tab |
|
| Up arrow |
|
| Down arrow |
|
| Left arrow |
|
| Right arrow |
|
| Home / End |
|
Interactive controls that manage their own arrow, Home, and End keys — inputs, comboboxes, listboxes, sliders, and similar — keep those keys when focused; the mega menu does not override them. Only focusable elements are reachable by keyboard, so non-interactive content within a custom region is skipped.