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

Aligning toggles to the right #5

Open
takase1121 opened this issue Feb 8, 2023 · 1 comment
Open

Aligning toggles to the right #5

takase1121 opened this issue Feb 8, 2023 · 1 comment

Comments

@takase1121
Copy link
Member

The current alignment for Toggle and its label is horrible.

image

In contrast, this is how it looks like in Material design:
image

This makes it less jarring to use.

On another note, radio buttons are usually left-aligned so that the buttons are kept in a straight line:

image

@jgmdev
Copy link
Member

jgmdev commented Feb 8, 2023

Good point, as you are pointing out they can be moved to left side of label like radio buttons. Also, maybe add a method to decide the toggle position, left or right and when placed right place it at total_width_of_toggle_including_label - width_of_toggle_box.

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