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

Auto-sizing form label doesn't align correctly with custom form controls #26616

Closed
andresgalante opened this issue May 28, 2018 · 2 comments
Closed
Labels

Comments

@andresgalante
Copy link
Collaborator

Since the custom select has a width: 100% here the custom select goes to a new line when there is a label:

screen shot 2018-05-28 at 9 15 55 am

I've added a sr-only class to the label on #26615 to fix the docs.

If an author wants to use a label with a custom element they can use the form-inline class on the form element and it'll work just fine, but not with Auto-sizing.

@mdo
Copy link
Member

mdo commented Jul 9, 2018

Yeah, we could override this to width: auto I think?

@mdo
Copy link
Member

mdo commented Dec 17, 2018

I think I'm going to close this as a won't fix? Only viable option I see here is to customize the .col-auto with some utilities (e.g., d-flex and margins).

@mdo mdo closed this as completed Dec 17, 2018
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

2 participants