summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuba Jastrzębski2023-09-01 16:40:34 +0200
committerGitHub2023-09-01 16:40:34 +0200
commit1b367e3f65e3736b5f91c9853a487f7f5d174a6f (patch)
treec93bb5ed4b572d497d75ce9791202657c56da172
parente2b511ed23eaef44f7dc465e6b7b4b41edd018e8 (diff)
downloadIT.starlight-1b367e3f65e3736b5f91c9853a487f7f5d174a6f.tar.gz
IT.starlight-1b367e3f65e3736b5f91c9853a487f7f5d174a6f.tar.bz2
IT.starlight-1b367e3f65e3736b5f91c9853a487f7f5d174a6f.zip
fix(Select): keep original option color when hovering (#612)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
-rw-r--r--.changeset/pretty-falcons-hope.md5
-rw-r--r--packages/starlight/components/Select.astro1
2 files changed, 6 insertions, 0 deletions
diff --git a/.changeset/pretty-falcons-hope.md b/.changeset/pretty-falcons-hope.md
new file mode 100644
index 00000000..eb40c8ef
--- /dev/null
+++ b/.changeset/pretty-falcons-hope.md
@@ -0,0 +1,5 @@
+---
+"@astrojs/starlight": patch
+---
+
+Avoid applying hovered `<select>` text color to its `<options>`
diff --git a/packages/starlight/components/Select.astro b/packages/starlight/components/Select.astro
index 2ca79caa..0975a678 100644
--- a/packages/starlight/components/Select.astro
+++ b/packages/starlight/components/Select.astro
@@ -73,6 +73,7 @@ interface Props {
option {
background-color: var(--sl-color-bg-nav);
+ color: var(--sl-color-gray-1);
}
@media (min-width: 50rem) {