fixed Select component ':active' option color (#2207)

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
pull/2208/head^2
Vlad 2022-03-18 19:31:30 +01:00 committed by GitHub
parent 47ce2feb3c
commit 46f515a19f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,15 @@ function Select<
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,
IndicatorSeparator: () => null,