-
Notifications
You must be signed in to change notification settings - Fork 116
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
Increase the default space between form elements #3087
Conversation
🦋 Changeset detectedLatest commit: 1b98497 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -60,7 +60,7 @@ | |||
.FormControl-spacingWrapper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@camertron - is this class used for spacing between form control children (e.g.: label, input, caption) or is this class intended to add spacing between a set of form controls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It adds spacing between individual form controls, not between constituent form control items like label, input, etc.
Hi everyone :) Are there any news on this? /cc @mperrotti @langermank @camertron |
Hey @HDinger, let me spot-check a few forms on github.com with this. If everything looks good, I'd be happy to merge it 😄 |
Ok, I spot-checked several forms on github.com and everything looks good. I actually prefer the increased spacing 😄 Here's an example of the difference:
Unsurprisingly, these look very similar to @HDinger's screenshots 😄 |
Never mind, carry on. |
Merged in #3159 |
What are you trying to accomplish?
Currently, long forms are very hard to grasp. The elements are all very close together making it hard to recognize which text belongs to which input field. In this PR, I slightly increased the space between individual elements in a form to create a clearer visual differentiation.
Screenshots
Integration
No
List the issues that this change affects.
Closes #3042
Risk Assessment
What approach did you choose and why?
Increase the space between form elements by using the
--stack-gap-normal
variable for the.FormControl-spacingWrapper
instead of a custom space.In the linked issue it was discussed whether we should touch the spacings on the form groups instead. I decided to not touch the groups here, as imho the framework should be able to render a good looking form without needing to wrap every element into an individual group.
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.