fixed Select component ':active' option color (#2207)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
This commit is contained in:
parent
47ce2feb3c
commit
46f515a19f
1 changed files with 9 additions and 0 deletions
|
@ -20,6 +20,15 @@ function Select<
|
||||||
primary25: "rgba(244, 245, 246, var(--tw-bg-opacity))",
|
primary25: "rgba(244, 245, 246, var(--tw-bg-opacity))",
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
|
styles={{
|
||||||
|
option: (base, state) => ({
|
||||||
|
...base,
|
||||||
|
":active": {
|
||||||
|
backgroundColor: state.isSelected ? "" : "rgba(17, 17, 17, var(--tw-bg-opacity))",
|
||||||
|
color: "#ffffff",
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
}}
|
||||||
components={{
|
components={{
|
||||||
...components,
|
...components,
|
||||||
IndicatorSeparator: () => null,
|
IndicatorSeparator: () => null,
|
||||||
|
|
Loading…
Reference in a new issue