This module provides a menu block that uses disclosure buttons to expand and collapse submenus, offering better keyboard accessibility. It allows users to choose whether to interact with submenus, with ARIA labels for screen readers. Optional JavaScript enhances the toggling functionality and includes hover navigation options.
This module provides an alternative to Drupal's default menu block that uses disclosure buttons for submenus.
What are disclosure buttons?
These are buttons next to menu links that toggle open the respective submenu. This allows keyboard users to choose whether they want to navigate into a submenu instead of being forced to tab through every single link in a multi-level menu. These buttons come complete with ARIA labels to inform users what the buttons control and what their status is.
What does the Javascript do?
The optional JS included with this module sets up the disclosure button toggling mechanic. There is a separate option to include hover navigation with keyboard navigation and resolve conflicts between the two.
Dependencies
- Twig Tweak module
Ask your assistant about Disclosure Menu
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.1.8 | Stable | 9–11 | Jan 6, 2025 | ||
| 2.1.7 | Stable | 9–10 | Mar 7, 2024 | ||
| 2.1.6 | Stable | 9–10 | Feb 8, 2024 | ||
| 2.1.5 | Stable | 9–10 | Sep 26, 2023 | ||
| 2.1.x-dev | Dev | 9–11 | Aug 9, 2023 | ||
| 2.1.4 | Stable | 9–10 | Jul 3, 2023 | ||
| 2.1.3 | Stable | 9–10 | Mar 23, 2023 | ||
| 2.1.2 | Stable | 9–10 | Mar 23, 2023 | ||
| 2.1.1 | Stable | 9–10 | Feb 10, 2023 |