diff --git a/docs/changelog.mdx b/docs/changelog.mdx index 53340a2..5d2a7fa 100644 --- a/docs/changelog.mdx +++ b/docs/changelog.mdx @@ -5,6 +5,19 @@ description: Release notes for Tangly. Notable changes per release. Each entry is authored as an [``](/reference/components/callouts#update) block, the same component you can use in your own docs. + + ## Highlights + + Sidebar group and section headers now render their icon. + + - **Group icons show up.** A nav group can carry an `icon` in `docs.json`, and the manifest already attached it to the group's sidebar item, but the theme dropped it and rendered a bare title. Both the top-level and nested group headers now render the icon (same `` and spacing as leaf pages and tabs). Groups without an icon are unchanged. ([#13](https://github.com/tanglydocs/tangly/pull/13)) + + ## Changes + + ### Features + - feat(theme-ui): render icons on sidebar group headers ([#13](https://github.com/tanglydocs/tangly/pull/13)) + + ## Highlights diff --git a/packages/theme-ui/src/Sidebar.astro b/packages/theme-ui/src/Sidebar.astro index cea4a29..14f2ca5 100644 --- a/packages/theme-ui/src/Sidebar.astro +++ b/packages/theme-ui/src/Sidebar.astro @@ -22,8 +22,9 @@ const isRoot = _depth === 0;
  • {item.isGroup ? (
    -
    - {item.title} +
    + {item.icon ? : null} + {item.title}
      @@ -64,8 +65,9 @@ const isRoot = _depth === 0;
    • {item.isGroup ? (
      -
      - {item.title} +
      + {item.icon ? : null} + {item.title}