Skip to content

Add nav class based on depth not parent#249

Merged
florianeckerstorfer merged 1 commit intobraincrafted:developfrom
bkosborne:patch-1
Jun 13, 2014
Merged

Add nav class based on depth not parent#249
florianeckerstorfer merged 1 commit intobraincrafted:developfrom
bkosborne:patch-1

Conversation

@bkosborne
Copy link
Copy Markdown
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