

Photo: Getty Images
Flyout
Introduction
The flyout is a full-height overlay panel that slides in from the side. A trigger button placed anywhere on the page opens it; a close button inside the panel dismisses it.
The flyout body accepts any content — navigation, a shopping cart, filters, and more. For multi-level navigation, it also supports a drill-down panel system that lets users move deeper into a hierarchy and back out again.
The Flyout
The flyout is made up of two parts: a trigger placed anywhere on the page, and the flyout panel itself. The trigger uses data-open="flyout" and aria-controls to reference the flyout by id.
Figure 1 shows the complete HTML, including the trigger button and all required selectors.
<!-- Trigger button -->
<button class="button button--icon-only" data-open="flyout" aria-controls="flyout-menu" aria-label="Open Menu" > <span class="icon icon-menu" aria-hidden="true"></span> </button>
<!-- Flyout menu -->
<div class="flyout" id="flyout-menu" aria-hidden="true" >
<div class="flyout__content" role="dialog" aria-modal="true" aria-label="Main Menu" >
<div class="flyout__header"> <button class="button button--icon-only font-size-md" data-flyout-close aria-label="Close Menu" > <span class="icon icon-close" aria-hidden="true"></span> </button> </div>
<nav class="flyout__body" aria-label="Main Menu Navigation"> <ul class="nav nav--divider"> <li><a href="#1">Home</a></li> <li><a href="#1">Trails</a></li> <li><a href="#1">Wildlife</a></li> <li><a href="#1">Events</a></li> <li><a href="#1">About</a></li> <li><a href="#1">Contact</a></li> </ul> </nav>
</div> </div>| Lines | Details |
|---|---|
| 3-10 | A button with The |
| 14-18 | The
|
| 20-25 | The
|
| 27-35 | The The button with |
| 37-46 | The Place any content here — navigation, a shopping cart, filters, or anything that suits an off-canvas panel. |















































