Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/small-singers-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Makes `<summary>` the first child of `<details>` in sidebar groups
2 changes: 1 addition & 1 deletion packages/starlight/components/SidebarSublist.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const { sublist, nested } = Astro.props;
<details
open={flattenSidebar(entry.entries).some((i) => i.isCurrent) || !entry.collapsed}
>
<SidebarRestorePoint />
<summary>
<SidebarRestorePoint />
<span class="group-label">
<span class="large">{entry.label}</span>
{entry.badge && (
Expand Down
Loading