Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Potentially breaking change! This release adds a template file specifically for the off-canvas menu. Previously it would use the theme provided template, which in some cases would result in a broken off-canvas menu. If you have overridden or customised the template in your theme, you may need to rename it so that it continues to be found. To customise, override the following template by copying it from the module and placing it in your theme templates directory: responsive-menu-off-canvas.html.twig
Adds a new feature to allow the customisation and override of mmenu's options and config. This allows developers to use most of mmenu's features which aren't included as configuration in the module's settings page. See the README.md for instructions and an example.
Adds an important fix for Chrome users where the off-canvas menu would render incorrectly unless specific meta tags exist. As this is potentially a breaking change the minor version number has been bumped. There is a new option in the module's setting which is set by default called "Dynamically modify the viewport meta tag". When enabled this will swap out the current contents of the viewport meta tag with the needed ones when the mmenu is open. When the mmenu closes the original contents of the meta tag are replaced.
This release adds the polyfills file back in behind an option in the settings form. Polyfills are needed for IE11 support and were accidentally removed upstream in the mmenu library.
This release has a minor potentially breaking change to the user experience: Instead of using the hammer.js library to implement gestures to open the off-canvas menu, the built-into-mmenu gestures can be enabled to provide a similar behaviour. The old settings for hammerswipe have been removed and a new checkbox to enable drag gestures has been added to the settings form.
Fixes for changes in the upstream mmenu library which made the libraries module unable to load mmenu due to string differences in the version regex. Also added jquery_update as a dependency as mmenu requires jQuery 1.7+
Note that you may need to download a newer version of the mmenu library: https://github.com/FrDH/jQuery.mmenu/releases
Alpha release of the 2.x branch of responsive_menu module. This branch does not rely on CSS hacks and instead uses the mmenu javascript library to provide the off-canvas mobile menu. Please test and provide feedback.
First alpha release of the module. Should be workable in this state and is being used on a production site. Waiting for more feedback before creating a stable release.