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

Medium Size is wrong #16

Open
wamry opened this issue Aug 1, 2019 · 2 comments
Open

Medium Size is wrong #16

wamry opened this issue Aug 1, 2019 · 2 comments

Comments

@wamry
Copy link

wamry commented Aug 1, 2019

This should be the setting for medium toggle button, not the current one

{ width: 60, padding: 14, circleWidth: 24, circleHeight: 24, translateX: 30 }

@aminebenkeroum
Copy link
Owner

@wamry I fixed the styling, tell me if it suits your needs.

@wamry
Copy link
Author

wamry commented Aug 19, 2019

This still didn't fix the problem, the problem is that medium and small are too close in this, they both look small.
Here's my styling for medium:
{width: 60, padding: 14.5, circleWidth: 24, circleHeight: 24, translateX: 30 }

Also, in my fork, I needed to have the translateX be -1 instead of 0
const toValue = isOn ? this.dimensions.width - this.dimensions.translateX : -1;

Not sure if this translate will work for the other sizes or not.

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