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

Spacing issues in the theme. #911

Closed
mjabbink opened this issue Jul 13, 2020 · 9 comments · Fixed by #913
Closed

Spacing issues in the theme. #911

mjabbink opened this issue Jul 13, 2020 · 9 comments · Fixed by #913
Assignees

Comments

@mjabbink
Copy link
Contributor

mjabbink commented Jul 13, 2020

Horizontal spacing between Feature cards should be minimum of 32px and we also use 64px

Screen Shot 2020-07-13 at 5.16.54 PM.png

FOr Artical cards the horzontal spacing shoulf be 16px:

Screen Shot 2020-07-13 at 5.19.26 PM.png

@mjabbink
Copy link
Contributor Author

mjabbink commented Jul 13, 2020

related to the issues in #613

@mjabbink
Copy link
Contributor Author

@sadekbazaraa

@sadekbazaraa
Copy link

@mjabbink in general, we always have 32px between elements vertically. The cards above have 16px space on the right side only so we can keep the type on the columns, otherwise we'd use the cards that butt up against each other. Either way, I think we should always maintain our consistent 32px minimum spacing between items vertically whether we're using touching cards or cards that have the 16px to the right. This is the way it's always been in our original sketch files.

Screen Shot 2020-07-14 at 10 55 46 AM

@sadekbazaraa
Copy link

sadekbazaraa commented Jul 14, 2020

@mjabbink also worth noting in the screenshot above is that the spacing is globally applied to the top of these cards, this is what also gives the 32px space between the intro paragraph and the first set of cards. If we go adjusting these cards to have 16px on top now, we'll start breaking other things in the process.

@mjabbink
Copy link
Contributor Author

I thought so but the current situation is not 32px or 16px in many places. BC and even Gatsby demo site has some other pixel amounts there.

https://gatsby-theme-carbon.now.sh/components/ArticleCard/#example

https://gatsby-theme-carbon.now.sh/components/FeatureCard

BC:

https://www.ibm.com/brand/systems/#additional-systems

this seems wrong too. Seems like the horizontal spacing should be 16px here too.
https://www.ibm.com/brand/expression

@mjabbink
Copy link
Contributor Author

Seems like the good of cards should not be turned into rows but I’m not wed to this. If this is how it’s been then we can leave the 32px between the 16px.

@sadekbazaraa
Copy link

@mjabbink I think something happened with spacing in multiple places with the last Gatsby update which was recent. I can see all the subtle errors in the links you posted above. Not sure what happened along the way?

The Systems page on Brand Center should be the way we've outlined it here: https://github.ibm.com/brand/events/issues/37

@mjabbink
Copy link
Contributor Author

@sadekbazaraa I reckon I’m OK with 32 with article cards. I just gotta get my head around the different spacing between horizontal and vertical. @sstrubberg

@vpicone
Copy link
Contributor

vpicone commented Jul 16, 2020

@sadekbazaraa since the spacing overhaul last year, our default vertical space has been 24px. We created an exception for the DoDont for example so that the vertical and horizontal were both 32px.

vpicone added a commit to vpicone/gatsby-theme-carbon that referenced this issue Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants