-
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
Carbon Grid class bx--col doesn't include top or bottom padding #3860
Comments
cc @jeanservaas would we want the grid code to ship with vertical padding? Right now we only have padding specified for gutters versus adding 16px padding to descendants in columns |
Weird, you kind of read my mind, I was noticing this discrepancy yesterday. Ideally, I think the answer to your question is yes... the grid code should ship with vertical padding that matches the side padding... Chiu's grid guidance examples with padding had both the vertical and the left and the right. Whereas the examples I've been creating for grid code tab follow what you've done for the grid demo and only have the left and the right shown. But, I do want to make the point, that if people are using the 32px, the 16px or the 2px scenarios on say a dashboard situation, they want to also keep their vertical padding consistent with that choice. BUT: |
@joshblack I just wanted to followup here given the work being done over at #3892 to see if a consensus has been reached. |
@mattalco I definitely think we'll look into adding vertical padding helpers for this use-case, I don't think we'll want columns to define these by default, however. |
@joshblack Thanks! We're super excited about the Carbon Grid component and can't wait to use it. |
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
Our team wraps the Carbon Grid classes into a component and I've noticed what I think is an inconsistency between the code and the documentation.
The documentation (links and screenshots below) states that there's a standard 16px padding on Items (that's how I read it, which may be incorrect). When I look at the
bx--col
class, I only see padding on the left and right.This issue is related to the Grid classes. Specifically
bx--col
.I expected a standard padding to be applied on all sides of elements tagged with the
bx--col
class instead of just the left and right.Chrome
10.5.1
I work within IBM on the IBM Marketplace.
Steps to reproduce the issue
Create a simple Grid and with a Row and Columns. I have a link below.
https://codesandbox.io/embed/carbon-components-getting-started-u9dmm
Additional information
The text was updated successfully, but these errors were encountered: