Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot manipulate the colorful css with Next.js ? #200

Open
ZalwayJH opened this issue Apr 6, 2023 · 1 comment
Open

Cannot manipulate the colorful css with Next.js ? #200

ZalwayJH opened this issue Apr 6, 2023 · 1 comment

Comments

@ZalwayJH
Copy link

ZalwayJH commented Apr 6, 2023

In Nextjs you have to import the style sheet but i cant find a way to get it to interact with the component at all. I've tried applying a style to the container and then doing .container.react-colorful{ } but no luck. Does anyone know how to make it work?

@anshul360
Copy link

Not sure if you already got the solution.
I used a workaround. I applied the style directly to the color picker:

<HexColorPicker color={bmbgcolor} onChange={setbmbgcolor} style={{width: "auto"}} />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants