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

Fields are stacked on same line #8

Open
AdamPS opened this issue Dec 3, 2019 · 1 comment
Open

Fields are stacked on same line #8

AdamPS opened this issue Dec 3, 2019 · 1 comment

Comments

@AdamPS
Copy link

AdamPS commented Dec 3, 2019

If a field has inline label and also multiple values then both the label and the items float left. If they don't fill the full width then the next field is stacked after it, floating around the first one. There needs to be a clearfix to keep the fields separate:

.field--label-inline {
  @include clearfix;
}

I can do a pull request if you like, but hopefully it's clear what I mean already and simple to paste those lines in to _field.scss. Thanks

@AdamPS
Copy link
Author

AdamPS commented Dec 8, 2019

Sorry that first one had an unwanted side-effect of clearing float images. Here is a better version - put this instead of the float.

.field--label-inline .field--items {
  overflow: hidden;
}

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

1 participant