csandman / chakra-react-select

A Chakra UI themed wrapper for the popular library React Select

Home Page:https://www.npmjs.com/package/chakra-react-select

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] selectedOptionColor doesn't work except for predfined colors like blue, red, purple

Moshappp opened this issue · comments

Description

Screen Shot 2023-02-10 at 2 41 59 AM

I tried to set colors in hexdecimal and rgb formats as well as from the chakra theme, nothing happened. react-select working as expected.

chakra-react-select Version

Latest

Link to Reproduction

No response

TypeScript?

  • Yes I use TypeScript

Steps to reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Operating System

  • macOS
  • Windows
  • Linux
  • iOS/iPadOS
  • Android

Additional Information

No response

This is a duplicate of #77

You can set it to colors from the chakra theme, but only the name of the colors, not a specific number.

If you want to customize the colors more specifically than that you can use chakraStyles. See the linked issue for an example, or I can provide one here tomorrow.

Thank you for the fast response, I have figured it out from the duplicate issue.