rainbow-me / rainbowkit

The best way to connect a wallet 🌈 🧰
https://rainbowkit.com
MIT License
2.36k stars 617 forks source link

openConnectModal opening unstyled modal ui #2027

Closed berkaycirak closed 1 month ago

berkaycirak commented 1 month ago

Is there an existing issue for this?

RainbowKit Version

2.0.7

wagmi Version

2.8.5

Current Behavior

I am trying to making a custom button by using hooks providen via rainbow kit. However, when I use useConnectModal hook, modal ui behavior is different than default ConnectButton behavior. I don't know the reason. Does anyone have that issue before?

Expected Behavior

I was expecting a behavior like default ConnectButton moda image

Steps To Reproduce

No response

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response

magiziz commented 1 month ago

@berkaycirak Did you add import '@rainbow-me/rainbowkit/styles.css' to your app ? Also can you share a small reproducible example ?

berkaycirak commented 1 month ago

Huh :) I assume it was already imported in rainbowProvider but I am wrong. Thanks for that, it works now