Skip to content

feat(theme-ui): render icons on sidebar group headers - #13

Merged
nc9 merged 2 commits into
mainfrom
feat/sidebar-group-icons
Jul 20, 2026
Merged

feat(theme-ui): render icons on sidebar group headers#13
nc9 merged 2 commits into
mainfrom
feat/sidebar-group-icons

Conversation

@nc9

@nc9 nc9 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Group/section headers in the sidebar now render their icon (from a nav group's icon in docs.json), mirroring how leaf pages and tabs already do. Previously the manifest carried item.icon onto group SidebarItems but the theme dropped it, rendering a bare title <div>.

Both the root-depth and nested-depth group blocks in Sidebar.astro now emit item.icon ? <Icon size={15}/> : null + a flex-1 truncate title span with gap-2.5, so groups without an icon look exactly as before.

bun run check passes (format + lint + build + typecheck).

@nc9
nc9 merged commit dc8504d into main Jul 20, 2026
1 check passed
@nc9
nc9 deleted the feat/sidebar-group-icons branch July 20, 2026 00:29
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.

1 participant