Skip to content

Commit

Permalink
style(ReactSelect): split data-focus and data-active styles for t…
Browse files Browse the repository at this point in the history
…he options
  • Loading branch information
TylerAPfledderer committed Feb 15, 2024
1 parent 321784a commit 6e37d6b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/@chakra-ui/components/ReactSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,13 @@ const baseStyle = definePartsStyle({
option: {
color: "body.base",
p: 2,
"&[data-focused=true], &[data-active=true]": {
bg: "primary.hover",
color: "primary.lowContrast",
"&[data-focused=true]": {
bg: "primary.lowContrast",
color: "primary.base",
},
"&[data-active=true]": {
bg: "body.light",
color: "primary.visited",
},
},
})
Expand Down

0 comments on commit 6e37d6b

Please sign in to comment.