-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Form spacing inconsistencies #2343
Comments
@emyarod Would you be able to look into this? Thanks! |
hi @elizabethsjudd thanks for reporting this! IIRC the v9 I believe this is also related to https://github.com/IBM/carbon-components-react/issues/1681. I found that many of our React components which contained nested inputs would have the I am on board with adding the bottom margin back into the form styles, but I think this change should go hand in hand with requiring explicit usage of |
I have an impression that form components in |
that might be true, but somewhere along the way something caused breakage because I remember components like the Slider being broken for quite some time. will need to take a look at the form/component history to see why that might have happened as well |
Closed via carbon-design-system/carbon-website#2796 |
Detailed description
Fieldsets and form items should have consistent spacing within a form. Currently Fieldsets have a margin-bottom of
$carbon--spacing-07
(https://github.com/IBM/carbon-components/blob/master/src/components/form/_form.scss#L20) but form-item doesn't have any margin-bottom meaning we have to manually add it. The demos on the Carbon site have a manual 2remmargin-bottom
added to form-item.Secondly according to the guidelines, the spacing should be
24px/1.5rem
which would be$carbon--spacing-06
.Form
Form items and fieldsets have consistent spacing (either they both have it or neither have it) and follow the recommended guidelines outlined on the Carbon site. https://www.carbondesignsystem.com/components/form/style#recommended
Chrome
v10.1.0
Watson Health Design Pattern & Asset Library (PAL)
Steps to reproduce the issue
The text was updated successfully, but these errors were encountered: