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

Styling has to be sent as props. #115

Open
amalantony opened this issue Nov 3, 2017 · 1 comment
Open

Styling has to be sent as props. #115

amalantony opened this issue Nov 3, 2017 · 1 comment

Comments

@amalantony
Copy link

amalantony commented Nov 3, 2017

Since the toggle button styles are read from a global css file, it's impossible to style toggle buttons differently in different parts of an application. To fix this, custom styles will have to be accepted as props to the Toggle component. The react-component/slider library uses this approach of styling: https://github.com/react-component/slider#common-api.

@jkerrwilson
Copy link

Seconded.

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