If you view a tree vocabindex with js disabled, you will see all sub terms under the parent terms. Is it possible to take the expanded class off of the parent items in the initial markup, that way it's possible to hide the sub-items with css, ala:

ul.vocabindex li {
  height 20px;
  overflow: hidden;
}

ul.vocabindex li.expanded {
  overflow: visible;
}
CommentFileSizeAuthor
vocabindex_tree_expanded.patch446 bytesq0rban

Comments

xano’s picture

Status: Needs review » Closed (won't fix)

I don't see what you're aiming at. Also new features are never added to existing branches.

q0rban’s picture

Status: Closed (won't fix) » Postponed (maintainer needs more info)

Ok, so as it stands, all parent list items are given a class of expanded. This means if someone has a slow connection, or JS disabled, all child terms are displayed under the parent terms. What I'm asking is for the expanded class to be taken off of those parent terms, so that just the JS is adding/removing the expanded class as needed.

I understand no features will be added to this tag, but the patch is against that version, so that's why I assigned it there.

xano’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

This is still a won't fix.

I have no idea what you mean. Items being displayed as children has nothing to to with either JS or CSS, but with the fact that they're rendered as nested lists. Also, nothing is hidden if JS is disabled or not present for any reason.