Closed GaryJones closed 9 years ago
Using SuperFish is indeed a better solution, I agree, since it's already in Genesis. And If Genesis drops SuperFish support, we can always add it to the plugin. Will look into that.
Nice plugin, your accessible-menu, by the way :-)
Closing this, SuperFish is a no go for G 2.2. And this file is only used for < Genesis 2.2. Above, it uses the one from Genesis core, that is exactly the same.
While the genwpacc-dropdown.js code looks considerably better now it's in a module, it still has some issues:
delay()
bit doesn't work at all, since that is only for animations. Without that bit working, it's pointless adding the class for mouseenter in the first place.I've created a new jQuery plugin: https://github.com/GaryJones/accessible-menu . It:
If you want to update your script with the code from my plugin, go ahead.
In the grand scheme of things though, I'd like to see Genesis Accessible dropping the current script, and just enabling and configuring the Superfish script that Genesis already includes. That already enables keyboard support, delay mouseleave, but also touch events, support for hoverIntent and so on and will be far better tested in real-world scenarios than either your current script or my plugin.