Skip to content

Commit

Permalink
fix: switched h2 to span in sidebar (#810)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <[email protected]>
  • Loading branch information
hasham-qaiser and delucis authored Oct 6, 2023
1 parent 6a03fb1 commit dbe977b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dull-mails-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Use `<span>` instead of `<h2>` in sidebar group headings
2 changes: 1 addition & 1 deletion packages/starlight/components/SidebarSublist.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ interface Props {
open={flattenSidebar(entry.entries).some((i) => i.isCurrent) || !entry.collapsed}
>
<summary>
<h2 class="large">{entry.label}</h2>
<span class="large">{entry.label}</span>
<Icon name="right-caret" class="caret" size="1.25rem" />
</summary>
<Astro.self sublist={entry.entries} nested />
Expand Down

0 comments on commit dbe977b

Please sign in to comment.