somewebmedia / hc-offcanvas-nav

JavaScript library for creating toggled off-canvas multi-level navigations, allowing endless nesting of submenu elements, supporting swipe gestures, keyboard interactions and ARIA attributes.
https://somewebmedia.github.io/hc-offcanvas-nav/
MIT License
336 stars 82 forks source link

Allow changing toggle button class #61

Closed ronilaukkarinen closed 3 years ago

ronilaukkarinen commented 3 years ago

If customToggle is used, toggled class should be also possible to define. Now it's toggle-open and if using for example hamburgers via npm the animations won't work because in hamburgers they use .is-active class. My suggestion is to allow to change this. Now it's hardcoded.

somewebmedia commented 3 years ago

Done! Newest version v6.1.2 use the option activeToggleClass

ronilaukkarinen commented 3 years ago

Wow, that was fast, thanks! ❤️