Skip to content

Commit

Permalink
Set default color theme in template (#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Feb 8, 2024
1 parent ce3108c commit 29da505
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-ants-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Fixes a CSS bug for users with JavaScript disabled
1 change: 1 addition & 0 deletions packages/starlight/components/Page.astro
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const pagefindEnabled =
data-has-toc={Boolean(Astro.props.toc)}
data-has-sidebar={Astro.props.hasSidebar}
data-has-hero={Boolean(Astro.props.entry.data.hero)}
data-theme="dark"
>
<head>
<Head {...Astro.props} />
Expand Down

0 comments on commit 29da505

Please sign in to comment.