-
Descriptionadded this package and was expecting dark mode to work out of the box. But as you can see the options are not visible. Any idea how i can style the options background manually? Can't seem to select it using inspect element chakra-react-select Version4.0.0 Link to ReproductionNo response TypeScript?
Steps to reproduce
Operating System
Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 17 comments 9 replies
-
I tested this out and I'm not seeing anything causing this. See here for a working example: https://codesandbox.io/s/chakra-react-select-demo-65ohb?file=/package.json I'd need a reproduction to figure out what's causing this. |
Beta Was this translation helpful? Give feedback.
-
The only thing I would think might be causing this would be that you have modified colors in your chakra theme. If you have any theme customizations, can you post them? |
Beta Was this translation helpful? Give feedback.
-
I am also facing this issue, happy to share my usage! I'll link the relevant pieces of information, please let me know if there is anything else you might need. Here is my theme config chakra-react-select Version4.0.0 TypeScript?
Operating System
|
Beta Was this translation helpful? Give feedback.
-
Hi, I am also facing this issue, I think it might be the css. I've noticed that in the demo you provided @csandman The button has This is what I imported in my project, it uses This is my theme config file, I just enabled dark mode https://gist.github.com/edulanasca/71679919953fcb4cee88506393ab62f4 Hope this can help |
Beta Was this translation helpful? Give feedback.
-
Another update, a friend of mine tried on a windows machine on a Firefox browser and it was working: |
Beta Was this translation helpful? Give feedback.
-
i overcame it by forcing a charkra style... but it's still a hack.. would expect it to be an out of the box behaviour
|
Beta Was this translation helpful? Give feedback.
-
I can see that multiple people are having this issue so I believe that there is some common thread that's causing it, but for some reason I still can't seem to make the issue happen. I think the biggest clue is the comment from @edulanasca about how the styling is using The same goes for the dropdown part, which is using the theme styles from Besides that, it would also be very helpful to know what specific package versions of chakra, emotion, etc. that people are on so I can try and reproduce this more easily. I'll continue trying to reproduce this in the meantime. |
Beta Was this translation helpful? Give feedback.
-
Also @aaronleopold I just tested your At this point I feel like this issue may be with a specific version of one of the sub-packages of Chakra, or something OS specific but its hard to tell. Without a reproduction, I'm not sure there's much I can do, because no matter what I try I can't reproduce this issue myself. On a side note, @aaronleopold stump looks like a really cool project! I've been getting interested in self hosted comic servers recently, and I'm currently a big fan of Komga, but yours looks like it has potential. |
Beta Was this translation helpful? Give feedback.
-
Super strange! If I come across anything that helps resolve this issue I can update the thread here, otherwise I'm okay keeping the manual styling I've added for now. Also, thanks!! It's a long ways away until a release, but I'm glad you liked it and that you got it up and running! I was a little worried people would have issues after helping my friend get it running on windows 😅 |
Beta Was this translation helpful? Give feedback.
-
Ah, I've found the issue. This is caused by using
As of If you do not plan on updating your react and chakra versions (which should be done together anyway, Chakra UI v2 is only fully compatible with React v18), please downgrade |
Beta Was this translation helpful? Give feedback.
-
I had those versions correct, so just deleted |
Beta Was this translation helpful? Give feedback.
-
Good to know! If anyone else is running into this issue after updating everything, try doing a clean install. |
Beta Was this translation helpful? Give feedback.
-
Yup, it's working now, I forgot to mention I'm on Windows, with Chrome. Thanks @csandman |
Beta Was this translation helpful? Give feedback.
-
@edulanasca glad to hear it! And @aaronleopold I realized that this might be an issue because I noticed in your "@chakra-ui/react": "^1.8.8",
"chakra-react-select": "^4.0.0",
"react": "^18.1.0",
"react-dom": "^18.1.0", So there's a fair chance you ended up with your main dependencies while on your development branch. |
Beta Was this translation helpful? Give feedback.
-
I'm going to convert this to a discussion so I can highlight the answer |
Beta Was this translation helpful? Give feedback.
-
this also happens for React 18, Chakra React Select 4 and Chakra UI 2.1. it's Chakra UI 2.1 that causes problems. I think it happens because temporary workaround for me is to force to use 2.1 version: |
Beta Was this translation helpful? Give feedback.
-
For me the Options were shown in darkmode, while the application was in lightmode. The reason for that: The property |
Beta Was this translation helpful? Give feedback.
Ah, I've found the issue. This is caused by using
chakra-react-select@^4.0.0
with a version of Chakra UI below 2 (such as 1.8.8).As of
chakra-react-select
v4, you must be on@chakra-ui/react@^2.0.0
as well asreact@^18.0.0
in order for it to work properly, as mentioned in the release notes and the readme. You can check Chakra UI's official migration guide for getting set up with the new version.If you do not plan on updating your react and chakra versions (which sh…