Open
Description
Description
When I pass colorScheme
to the Select
component. I expect to be able to use in my theme file. But the colorScheme
comes back as undefined
.
If I copy exactly what it here:
https://github.com/chakra-ui/chakra-ui/blob/main/packages/components/theme/src/components/input.ts
Let's console.log the colorScheme
in variantOutline
.
const variantOutline = definePartsStyle((props) => {
const { colorScheme, theme } = props
const { focusBorderColor: fc, errorBorderColor: ec } = getDefaults(props)
console.log({ colorScheme });
return { ... }
})
When I do this for a normal Input
it correctly shows the colorScheme that I passed to my component. This works for other libs that use Chakra's input under the hood too.
But with this library it returns undefined.
chakra-react-select Version
4.6.0
Link to Reproduction
No response
TypeScript?
- Yes I use TypeScript
Steps to reproduce
No response
Operating System
- macOS
- Windows
- Linux
- iOS/iPadOS
- Android
Additional Information
I think it's just getting cleared somewhere. I tried to dig through the codebase to find it but everything is pretty much abstracted away.