A sloth hanging from a tree branch

Photo: Shutterstock

Dropdown

Introduction

Natura11y provides three dropdown patterns for navigation: a standard button dropdown, a dropdown link split for top-level page access with sub-navigation, and a mega menu for rich multi-column panels.




Mega Menu

The mega menu replaces a standard .dropdown__menu list with a <div> using the .mega-menu--{bp} class. This allows any content—grids, grouped links, images—inside the dropdown panel.

Mega Menu Example

HTML
<ul class="nav nav--horizontal">
<li>
<button
class="dropdown"
data-toggle="dropdown"
data-hover="true"
aria-controls="mega-id"
aria-expanded="false"
type="button"
>
<span class="text">
Label
</span>
</button>
<div class="mega-menu--lg" id="mega-id">
<div class="grid grid--column-4--lg gap-4">
<nav>
<p><strong>Column One</strong></p>
<ul class="nav">
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
</ul>
</nav>
<nav>
<p><strong>Column Two</strong></p>
<ul class="nav">
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
</ul>
</nav>
</div>
</div>
</li>
</ul>
Figure 5
Figure 5 notes
LinesDetails
18

The .mega-menu--{bp} class replaces .dropdown__menu.

It is a <div> rather than a <ul>, which allows any content inside — grids, grouped links, images, and more. The {bp} modifier sets the breakpoint at which the mega menu layout is applied.

5-16

The same trigger pattern as a standard dropdown applies.

Include data-toggle="dropdown", aria-controls referencing the mega menu ID, and aria-expanded="false". Add data-hover="true" to enable hover behavior on desktop.