summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Tier2023-05-17 19:25:05 +0100
committerGitHub2023-05-17 20:25:05 +0200
commit38c2c1f1ed25d6efe6ab2637ca2d9fbcdafcd240 (patch)
tree9a60e40ad00285b020bc39f57072eba9f82340eb
parent9ca67d8984f76c22e5411d7352aa8e0bd4514f42 (diff)
downloadIT.starlight-38c2c1f1ed25d6efe6ab2637ca2d9fbcdafcd240.tar.gz
IT.starlight-38c2c1f1ed25d6efe6ab2637ca2d9fbcdafcd240.tar.bz2
IT.starlight-38c2c1f1ed25d6efe6ab2637ca2d9fbcdafcd240.zip
Fix background color on select component (#67)
-rw-r--r--.changeset/light-dingos-fry.md5
-rw-r--r--packages/starlight/components/Select.astro4
2 files changed, 9 insertions, 0 deletions
diff --git a/.changeset/light-dingos-fry.md b/.changeset/light-dingos-fry.md
new file mode 100644
index 00000000..01b896e3
--- /dev/null
+++ b/.changeset/light-dingos-fry.md
@@ -0,0 +1,5 @@
+---
+"@astrojs/starlight": patch
+---
+
+Fix background color on select component
diff --git a/packages/starlight/components/Select.astro b/packages/starlight/components/Select.astro
index 1cd5fbd3..86771470 100644
--- a/packages/starlight/components/Select.astro
+++ b/packages/starlight/components/Select.astro
@@ -72,6 +72,10 @@ interface Props {
appearance: none;
}
+ option {
+ background-color: var(--sl-color-bg-nav);
+ }
+
@media (min-width: 50rem) {
select {
font-size: var(--sl-text-sm);