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

b:switch alignment issue #488

Closed
jbhardwaj12 opened this issue Aug 16, 2016 · 3 comments
Closed

b:switch alignment issue #488

jbhardwaj12 opened this issue Aug 16, 2016 · 3 comments
Assignees
Labels
Milestone

Comments

@jbhardwaj12
Copy link

css class checkbox is applied on Switch component from core.css, this adds 10 px of top and bottom margin which causes misalignment in form.

image

@stephanrauh
Copy link
Collaborator

Might be caused by deriving the switch from the checkbox.

@stephanrauh stephanrauh added this to the v1.0.0 milestone Aug 17, 2016
@MitchTalmadge
Copy link
Contributor

Yep I had to use some of my own css to fix this:

.checkbox label.bf-no-message {
    padding-left: 0 !important;
}

.checkbox {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

If I remember correctly, the switch doesn't have its own wrapper class that I could use for these modifications, so I had to use the checkbox class itself which is less than ideal, but works.

@TheCoder4eu
Copy link
Owner

Fixed the issue (now the component has a 0 margin)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants