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

Reduce padding between toggle and edges to 0 #49

Open
Perondas opened this issue Apr 11, 2022 · 2 comments
Open

Reduce padding between toggle and edges to 0 #49

Perondas opened this issue Apr 11, 2022 · 2 comments

Comments

@Perondas
Copy link

I am trying to create a switch like in this image:
image

However, I cannot find a way to reduce the distance between the toggle and the edges to 0.
It ends up looking like this:
image

It would be nice if there was a setting that allows to remove this little bit of padding.

I have already looked at the code and by subtracting 9 from the Container width on line 382 I get the following:
image

This is certainly better, but the 9 is hardcoded for my specific toggle size.

@sunilhari9
Copy link

Hei Perondas, you can set padding:0 to get the desired output

@hcakil
Copy link

hcakil commented Jun 7, 2023

It solved the issue. Maybe we need to add this info to documentation. Thanks.

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

3 participants