Skip to content
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.

Refactor ElectricNavigation #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonathantneal
Copy link
Contributor

  • Generates the toggler button instead of adding a non-functional (js required) one to the markup.
  • Applies the generated toggler button only to the topmost electric navigation menu.
  • Allows configuration of the collapsed and expanded toggler classes.
  • Properly supports multiple menu classnames in the JS (bug in all previous versions).
  • Does not create empty class attributes when classes are not specified.
  • Renames the elementClasses property to menuClasses to make usage clearer.

- Generates the toggler element, rather than adding a non-functional one in the source.
- Applies the generated toggler element only to the topmost electric navigation menu.
- Allows configuration of the collapsed and expanded toggler classes.
- Properly supports multiple classnames in the JS (bug in all previous versions).
- Does not create empty class attributes when classes are not specified.
- Renames the `elementClasses` property to `menuClasses` to make usage clearer.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant