Answer stability round 1: 1 🔴, 6 🟡 (0 misread); hide the theme switch after its base rule, hide inert nav toggles, test the rendered result
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<%#
|
||||
Recursive nav tree. Each node: { label, href?, icon?, count?, current?, open?, children? }.
|
||||
Shape is orthogonal: header (children → disclosure toggle + nested <ul>) vs leaf (spacer),
|
||||
and clickable (href → <a>) vs static (<span>). The CSS reveals children only when the
|
||||
sibling .nav-disc is [open]. `root` picks the outer class.
|
||||
and clickable (href → <a>) vs static (<span>). Where :has() works, the CSS reveals children
|
||||
only when the sibling .nav-disc is [open]; elsewhere it shows them all. `root` picks the outer class.
|
||||
%><%
|
||||
const nodes = locals.nodes || [];
|
||||
const root = locals.root !== false;
|
||||
|
||||
Reference in New Issue
Block a user