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

No small control's labels in horizontal forms #12068

Closed
EPinci opened this issue Jan 2, 2014 · 4 comments
Closed

No small control's labels in horizontal forms #12068

EPinci opened this issue Jan 2, 2014 · 4 comments

Comments

@EPinci
Copy link

EPinci commented Jan 2, 2014

If you try to build a form-horizontal with form-controls that are input-sm, labels are always baseline aligned to normal controls.
I would see usefull a class to fit labels to the input-sm control (and viceversa for large).

Thank you.

@mdo
Copy link
Member

mdo commented Jan 3, 2014

Please provide a jsbin or jsfiddle to show what you want.

@EPinci
Copy link
Author

EPinci commented Jan 3, 2014

I've managed to get an example at http://jsfiddle.net/U96x9/5/
Both "wrong label"s have (when non form is not collapsed):

  • different font size from their respective control
  • baseline not aligned with their respective control

I would need a class to fit the label to the control to be put to the label tag itself ("control-label-sm/lg" ? Have the same "input-sm/lg" work in labels?)

A streched idea could be something I can place to the fieldset/form-group in order to have all contained controls & labels sized accordingly.

Does it make sense?

Thank you.

@EPinci
Copy link
Author

EPinci commented Jan 9, 2014

Ideally, build on that, although there's support for "different sizes inputs", there's no support for "different sized forms". E.g.: If you use a small/large sized input in a form, everything else (labels, spacings) remains "fitted" for a normal control.

I would see useful to have a form-condensed class with the same semantics of the table-condensed class.

Thank you.

@mdo
Copy link
Member

mdo commented Jan 14, 2014

Gotcha. I don't think we'll be adding sizing classes for form labels. For now, manually tweak them. We'll revisit for v4.

@mdo mdo closed this as completed Jan 14, 2014
@mdo mdo mentioned this issue Aug 19, 2015
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

2 participants