Available Navigation Styles
Slide-in Drawer

The Slide-in Drawer navigation style.
| Property | Value |
|---|---|
| Style name | slide-in |
| Label | Slide-in Drawer |
| Behavior | Slides in from the right edge of the viewport. |
A fixed-position drawer that slides in from the right side when opened. The drawer is 300px wide and uses a smooth 0.3s ease transition.
Slide-in Left
| Property | Value |
|---|---|
| Style name | slide-in-left |
| Label | Slide-in Left |
| Behavior | Slides in from the left edge of the viewport. |
Similar to the Slide-in Drawer but enters from the left side instead of the right. Useful for sites with left-to-right reading direction where the navigation should feel anchored to the starting edge.
Fullscreen Overlay

The Fullscreen Overlay navigation style.
| Property | Value |
|---|---|
| Style name | fullscreen |
| Label | Fullscreen Overlay |
| Behavior | Covers the entire viewport with a centered navigation layout. |
A full-viewport overlay that fades in, centering the navigation content both horizontally and vertically. Uses opacity and visibility transitions for a smooth reveal.
Scroll Overlay
| Property | Value |
|---|---|
| Style name | scroll |
| Label | Scroll Overlay |
| Behavior | Slides down from the top of the viewport. |
A fixed-position overlay that slides down from the top edge. Spans the full width of the viewport and is suitable for compact navigation menus.
Using Navigation Styles
In the Site Editor

Pick a navigation style in the block’s Styles section.
- Navigate to Appearance → Editor.
- Select the Navigation block in your header template part.
- In the block settings sidebar, find the Styles section.
- Select one of the four overlay variations.
- Save your changes.
In Block Markup
Navigation styles can be applied in template HTML using the WordPress block style class:
Copied!HTML<!-- wp:navigation {"className":"is-style-slide-in"} /-->
Technical Details
The navigation styles are registered by Aegis\Framework\DesignSystem\NavigationOverlay. Inline CSS is generated for each style variation and attached during block registration. Overlay stylesheet lives at vendor/aegis/framework/public/css/block-styles/navigation-overlay.css and loads when a core/navigation block (or overlay style class) is present.
Mobile Menu Submenus
In the overlay (mobile) menu, submenus start closed. Tapping an item that has sub-items, or the arrow beside it, slides in a panel with:
- a Back button that returns to the previous level;
- the parent item as a title, linked to its page when it has one;
- the sub-items, each with its own arrow if it has further sub-items.
This applies to every Navigation block, including Page List items and the “Always” overlay setting. Keyboard users can press Escape to go back one level; Tab stays inside the open menu. Closing the menu resets it to the top level. Users who prefer reduced motion get the panels without the slide animation.
The behavior comes from vendor/aegis/framework/public/js/navigation-drilldown.js, which loads only on pages that have submenus, with its styles in core-blocks/navigation.css. If JavaScript is unavailable, the menu shows core’s fully expanded list.
Slide-Through Submenus in an Inline Menu
Since 1.0.2, a Navigation block that is always shown inline (no overlay) can use the same slide-through panels. Add is-drilldown to Advanced → Additional CSS class(es) on the Navigation block, and set its overlay to Off.
Inline drilldown menus work like the overlay menu, with two differences:
- Tab is not kept inside the menu, because the menu is part of the page.
- The menu returns to the top level when the
aegis:drilldown-resetevent is dispatched on the Navigation block, for example when a sidebar that holds it closes:nav.dispatchEvent( new CustomEvent( 'aegis:drilldown-reset' ) ), wherenavis the.wp-block-navigation.is-drilldownelement.
Each drilldown row is at least 44px tall, so it is easy to tap.
Submenu Direction
On desktop, submenus open to the right of their parent item in every Navigation block, including right-aligned menus (core WordPress opens them to the left there). Nested submenus open further to the right. In right-aligned menus, the last top-level item is the exception: its submenu opens toward the left so it stays on screen. These rules live in vendor/aegis/framework/public/css/core-blocks/navigation.css.
Accessibility
All navigation overlay variations:
- Support keyboard navigation when open.
- Use appropriate z-index layering (1000) to appear above page content.
- Transition smoothly to avoid disorienting users.
Ensure your navigation menu includes a close button or mechanism that is keyboard-accessible when using overlay styles.
Next Steps
- Enhanced Core Blocks — Other core block enhancements.
- Template Parts — Using navigation in header template parts.
- Accessibility — Navigation accessibility guidelines.