summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Swithinbank2024-02-08 16:55:27 +0100
committerGitHub2024-02-08 16:55:27 +0100
commit29da505474174fefaec4e27a2c2c3e90e3f68a31 (patch)
tree98bb1804882fc651f9d4ce79f1cefa9fbba7ea31
parentce3108cf6ecb77d12db973485d21e0fc7fd63ca6 (diff)
downloadIT.starlight-29da505474174fefaec4e27a2c2c3e90e3f68a31.tar.gz
IT.starlight-29da505474174fefaec4e27a2c2c3e90e3f68a31.tar.bz2
IT.starlight-29da505474174fefaec4e27a2c2c3e90e3f68a31.zip
Set default color theme in template (#1473)
-rw-r--r--.changeset/famous-ants-sing.md5
-rw-r--r--packages/starlight/components/Page.astro1
2 files changed, 6 insertions, 0 deletions
diff --git a/.changeset/famous-ants-sing.md b/.changeset/famous-ants-sing.md
new file mode 100644
index 00000000..601c637a
--- /dev/null
+++ b/.changeset/famous-ants-sing.md
@@ -0,0 +1,5 @@
+---
+'@astrojs/starlight': patch
+---
+
+Fixes a CSS bug for users with JavaScript disabled
diff --git a/packages/starlight/components/Page.astro b/packages/starlight/components/Page.astro
index af8f835d..515c6234 100644
--- a/packages/starlight/components/Page.astro
+++ b/packages/starlight/components/Page.astro
@@ -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} />