lcdsantos/menuspy

header > nav > ul > li > a structure in mandatory?

hackuun opened this issue · 2 comments

Hello. I had this markup and plugin worked incorrect nav > a

After I add markup from example it begin to work.

Is this structure is mandatory?

The active class will be applied to the closest parent element of a.

In the case of nav > a, the class will be applied to nav, which is not useful.

@lcdsantos It make sense. Thanks!