File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
packages/starlight/components Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @astrojs/starlight ' : patch
3
+ ---
4
+
5
+ Fixes HTML validity in sidebar groups by ensuring ` <summary> ` is the first child of ` <details> `
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ const { sublist, nested } = Astro.props;
37
37
<details
38
38
open = { flattenSidebar (entry .entries ).some ((i ) => i .isCurrent ) || ! entry .collapsed }
39
39
>
40
- <SidebarRestorePoint />
41
40
<summary >
42
41
<span class = " group-label" >
43
42
<span class = " large" >{ entry .label } </span >
@@ -51,6 +50,7 @@ const { sublist, nested } = Astro.props;
51
50
</span >
52
51
<Icon name = " right-caret" class = " caret" size = " 1.25rem" />
53
52
</summary >
53
+ <SidebarRestorePoint />
54
54
<Astro.self sublist = { entry .entries } nested />
55
55
</details >
56
56
)}
You can’t perform that action at this time.
0 commit comments