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

Change the color? #206

Open
KolbySisk opened this issue Dec 14, 2020 · 2 comments
Open

Change the color? #206

KolbySisk opened this issue Dec 14, 2020 · 2 comments

Comments

@KolbySisk
Copy link

How can I change the default blue color? I don't see this documented anywhere.

@xrkffgg
Copy link
Member

xrkffgg commented Dec 14, 2020

You can use className. And custom css.

@KolbySisk
Copy link
Author

I suppose that works.

The main reason I'm looking for a 3rd party checkbox solution is so I don't have to include hacky custom checkbox css in my project. Changing the color is pretty straight forward:

 .rc-checkbox .rc-checkbox-inner {
    background-color: red;
    border-color: red;
  }

But I'd also like to change the size, and with the code required to make that happen it starts to defeat the purpose. I might as well roll my own checkbox.

A prop to change the color and size (maybe border radius as well) would be a big selling point for me.

Cheers.

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