You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The individual fields are very close together, there is only little vertical space between them. That does not look very nice and is also hard for users to scan.
The space is not consistent, it is larger, when the field above has a description displayed.
The FormControl-spacingWrapper adds a spacing of 8px in between the elements which is not enough imho
It feels like in GitHub the same issue was experienced and "solved" by putting a FormGroup around each individual field to add more spacing (see for example https://github.com/settings/profile)
Expected behavior
In my eyes, it should not be required to put FormGroups around individual elements to make a comparably simply form readable
The default spacing between form elements should be larger (e.g 16px).
The text was updated successfully, but these errors were encountered:
Thanks for bringing this up @HDinger 😄 If you have time to put together a PR for this, I would be happy to review it. You're right that we shouldn't have to wrap each form field in a group wrapper, although the framework does that automatically. It might be worth removing caption padding and increasing the padding on the group element. Thoughts?
Hi @camertron I gave it a shot in #3087. I'd be happy to get your review on this. I for now tried to simply increase the space which is given by the FormControl-spacingWrapper because of two reasons:
The spacingWrapper is meant exactly for this case. It used a custom space and I replaced it with a standardized variable.
Groups are not always added automatically. Basically every expample that is in the lookbook does not have a form group, so we cannot rely on the group to take care of the spacing
I don't think form elements should project padding/margins. The spacing between form controls should be handled by the layout CSS in whatever context you're rendering the form controls in.
Steps to reproduce
Actual behavior
FormControl-spacingWrapper
adds a spacing of 8px in between the elements which is not enough imhoFormGroup
around each individual field to add more spacing (see for example https://github.com/settings/profile)Expected behavior
The text was updated successfully, but these errors were encountered: