Patterns
Patterns copied to clipboard
Demo page for menu pattern
@pilz @cornae I would like to work on this, and write tests for this pattern too. But I am clueless right now as to what menu does? It would great if you could help out a little.
@janga1997 This is a very simple pattern that makes sure that only one menu item has the class 'open' at a time. And if you click one of the others, it puts 'open' on that li and 'closed' on all the others. That way a designer can rely on the classes being set consistently for styling. Does that help?
That does. Thanks for the help!