Patterns icon indicating copy to clipboard operation
Patterns copied to clipboard

Demo page for menu pattern

Open cornae opened this issue 12 years ago • 3 comments

cornae avatar May 29 '13 10:05 cornae

@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 avatar Jan 25 '17 16:01 janga1997

@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?

pilz avatar Mar 05 '17 12:03 pilz

That does. Thanks for the help!

janga1997 avatar Mar 05 '17 15:03 janga1997