Skip to content

Conversation

@bkosborne
Copy link
Contributor

The nav class should be added when the current depth is 0, meaning when the item is the first to be rendered. The previous way checked if the item had a parent. But this would screw up rendering if the user wanted to render just a subset of the tree, because that item would always have a parent but should be rendered with the nav class.

The nav class should be added when the current depth is 0, meaning when the item is the first to be rendered. The previous way checked if the item had a parent. But this would screw up rendering if the user wanted to render just a subset of the tree.
florianeckerstorfer pushed a commit that referenced this pull request Jun 13, 2014
Add nav class based on depth not parent
@florianeckerstorfer florianeckerstorfer merged commit 7b0f1cd into braincrafted:develop Jun 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants