arnthor3 / react-bootstrap-toggle

Bootstrap-toggle without the JQuery dependencies
Other
54 stars 16 forks source link

Bootstrap 4 support #30

Closed Fatal1stZ closed 5 years ago

Fatal1stZ commented 5 years ago

Does it suppot bootstrap 4? Or any fast suggest how to port it ?

arnthor3 commented 5 years ago

I have not tried it yet but it looks like it should work. The classnames are the same so it should work.

Fatal1stZ commented 5 years ago

I guess it misses some classes actually. It looks pretty strange out of the box.

Fatal1stZ commented 5 years ago

Can you take a look at this? For example there is no btn-default in bootstrap 4.

arnthor3 commented 5 years ago

Yeah, of course. I will look into this later on today.

arnthor3 commented 5 years ago

You can for now add a class for the btn-default to get the handle back. You can just add to you css

.btn-default { background: $some-color; }

I will try to get a build out this weekend.

Fatal1stZ commented 5 years ago

Thank you. Any news?

arnthor3 commented 5 years ago

Sorry, have not had the time to finish this up. If you really need this to work you can add this rule to your css and it should display correctly.

.btn-default { background: #fff; border: #ccc }

If you would like to take a stab at it I would love a PR 👍