Skip to content

Commit

Permalink
fix(Select): keep original option color when hovering (#612)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
KubaJastrz and delucis committed Sep 1, 2023
1 parent e2b511e commit 1b367e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-falcons-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/starlight": patch
---

Avoid applying hovered `<select>` text color to its `<options>`
1 change: 1 addition & 0 deletions packages/starlight/components/Select.astro
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ interface Props {

option {
background-color: var(--sl-color-bg-nav);
color: var(--sl-color-gray-1);
}

@media (min-width: 50rem) {
Expand Down

0 comments on commit 1b367e3

Please sign in to comment.