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;
}
| Comment | File | Size | Author |
|---|---|---|---|
| vocabindex_tree_expanded.patch | 446 bytes | q0rban |
Comments
Comment #1
xanoI don't see what you're aiming at. Also new features are never added to existing branches.
Comment #2
q0rban commentedOk, 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.
Comment #3
xanoThis 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.