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

Multiple Select: checkboxes are not centre aligned #5083

Closed
IsmailM opened this issue Aug 7, 2017 · 5 comments
Closed

Multiple Select: checkboxes are not centre aligned #5083

IsmailM opened this issue Aug 7, 2017 · 5 comments

Comments

@IsmailM
Copy link

IsmailM commented Aug 7, 2017

The checkboxes in the multiple select are not aligned with the text.

See below of a screenshot of the docs page:

forms_-_materialize

Potential Fix:

.input-field .dropdown-content [type="checkbox"]+label {
  top: 0; /* previously 1px; */
  display: inline; /* previously inherits `display: inline-block;` from `[type="checkbox"]+label` */
}
@briancwald
Copy link

briancwald commented Aug 8, 2017

Yeah, I have this same problem too. your solution seems OK for me, though you won't want to add .col on .input-field as not all input-fields are bound to a grid column.

@SerdarNur
Copy link

@IsmailM your solutions works for me. Thank you!

@seabrus
Copy link

seabrus commented Aug 31, 2017

@IsmailM I use your solution in a Meteor project, thank you. However, I've modified it a little:

.input-field .dropdown-content [type="checkbox"]+label {
  top: -11px !important; /* previously 1px; */
 }

In my case it is enough to align lines vertically.

@mister-good-deal
Copy link

mister-good-deal commented Aug 31, 2017

Same problem here, thx for the fix.

For me to get it perfectly aligned, I did top: -0.2em;.

@acburst
Copy link
Collaborator

acburst commented Oct 4, 2017

This is fixed in v1-dev

@acburst acburst closed this as completed Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants