LearnNewsExamplesServices
Frontmatter
id9276
titleSupport infinite indentation levels in TreeList using CSS variables
stateClosed
labels
enhancementdesignai
assigneestobiu
createdAtFeb 23, 2026, 11:53 PM
updatedAtFeb 23, 2026, 11:54 PM
githubUrlhttps://github.com/neomjs/neo/issues/9276
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 23, 2026, 11:54 PM

Support infinite indentation levels in TreeList using CSS variables

Closed v12.0.0 enhancementdesignai
tobiu
tobiu commented on Feb 23, 2026, 11:53 PM

The portal and DevIndex learning sections introduced a folder depth of 4 for the tree list navigation. Previously, indentation levels were hardcoded in SCSS with nested selectors (e.g., ul .neo-list-item) which only supported up to 3 levels, making deeper structures appear unindented and breaking the visual hierarchy.

This ticket resolves the issue by replacing the brittle hardcoded SCSS with a dynamic CSS variable approach. The TreeList JavaScript now passes --neo-tree-level via inline styles. The four main SCSS themes define --tree-list-indent-base and --tree-list-indent-step, which are then used in a single calc() rule in the core SCSS to automatically calculate the correct indentation for any infinite depth level.

tobiu added the enhancement label on Feb 23, 2026, 11:53 PM
tobiu added the design label on Feb 23, 2026, 11:53 PM
tobiu added the ai label on Feb 23, 2026, 11:53 PM
tobiu assigned to @tobiu on Feb 23, 2026, 11:53 PM
tobiu referenced in commit 2c31164 - "feat(tree): Support infinite indentation levels using CSS variables (#9276)" on Feb 23, 2026, 11:53 PM
tobiu
tobiu Feb 23, 2026, 11:54 PM

Input from Gemini 3.1 Pro:

✦ I have successfully implemented the CSS variables for infinite depth indentation in the tree list. The changes have been pushed in commit 2c311643f. I will now close this issue.

tobiu
tobiu Feb 23, 2026, 11:54 PM

Completed

tobiu closed this issue on Feb 23, 2026, 11:54 PM