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

Should bs-form-group be contextual? #186

Closed
srvance opened this issue Dec 29, 2016 · 2 comments
Closed

Should bs-form-group be contextual? #186

srvance opened this issue Dec 29, 2016 · 2 comments

Comments

@srvance
Copy link
Contributor

srvance commented Dec 29, 2016

Right now bs-form-group is freestanding. I think it should be contextual under bs-form. It probably escaped notice because bs-form-element inherits from it rather than it being used explicitly.

I ran into this trying to adjust for some BS4 changes to how the form-group class is composed in horizontal layouts.

@simonihmig
Copy link
Contributor

Yes, I also had this in my mind. However I was a bit unsure if there might be use cases where one would want to use bs-form-group without a bs-form, when showing validation state without a real <form>? So I left it untouched so far, but might rethink this...

@srvance
Copy link
Contributor Author

srvance commented Dec 30, 2016

So the form-group class doesn't automatically pull in row in BS4 in horizontal layout. That means that for it to behave the same, we need to add both row and form-group, but only in horizontal layout. So far, I built it into bs-form.element, but that doesn't apply to all form groups like it should. It would be easier to integrate it nicely as a contextual component, although not required. It took me awhile to realize that element extended form-group.

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

2 participants