Allow customisation of the nav-toggle #184

Open
craigmdennis opened this Issue Oct 27, 2015 · 5 comments

Projects

None yet

3 participants

@craigmdennis

It would be great to be able to change the classes applied to the nav toggle as well as the main navigation element.

@kush1960
kush1960 commented Feb 1, 2016

+1 for this feature.

@samikeijonen

You can do both using customToggle and navClass options.

@kush1960
kush1960 commented Feb 1, 2016

As far as I can tell, there isn't a way to modify the class applied top the js inserted button used to trigger the menu <a href="#" class="nav-toggle" aria-hidden="false">Menu</a>
Isn't customToggle for targeting existing html created for the button?
And navClass applies a class to the list used for the menu?

I was hoping to replace the class used in the injected a href. Eg. <a href="#" class="nav-other-nav-toggle" aria-hidden="false">Menu</a>

@samikeijonen

Isn't customToggle for targeting existing html created for the button?

Yes you should use customToggle for your own button. And note that it really should be a button, not a link.

And navClass applies a class to the list used for the menu?

Noup, it's for nav itself.

@kush1960
kush1960 commented Feb 1, 2016

Thanks for clarifying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment