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

fix[spacing]: paragraphs following h4s need 0 margin top #508

Closed
2 tasks
jeanservaas opened this issue Nov 7, 2019 · 8 comments · Fixed by #550
Closed
2 tasks

fix[spacing]: paragraphs following h4s need 0 margin top #508

jeanservaas opened this issue Nov 7, 2019 · 8 comments · Fixed by #550
Assignees
Labels
role: dev 🤖 severity: 3 Affects minor functionality, has a workaround type: bug 🐛

Comments

@jeanservaas
Copy link
Contributor

fix[spacing]: paragraphs following h4s need 0 margin top

After pushing the new spacing fix, we have to tweak the H4s in the theme:

  • all paragraphs following h4s should have 0 margin top
  • create a FigureTitle component so folks don’t have to hijack h4's to get a figure title (leaving images, figures, videos etc. to still get the sapce)

This is what's happening right now... creating super confusing hierarchies across the Carbon site:

image

@jnm2377
Copy link
Contributor

jnm2377 commented Nov 19, 2019

Looks like the spacing in the paragraph is actually coming from the row. Row's are now receiving a margin-top: 1.5rem coming from these styles: https://github.com/vpicone/gatsby-theme-carbon/blob/d9e6fdc0d80228b6c1326968cba2f0663772d7a6/packages/gatsby-theme-carbon/src/components/Main/Main.module.scss#L11-L18

@rcwakelin
Copy link

PR request to come soon.

@mjabbink
Copy link
Contributor

mjabbink commented Dec 4, 2019

See second bullet above. This seems to have been missed.

references:

Screen Shot 2019-12-04 at 5 34 33 PM

Screen Shot 2019-12-04 at 5 34 29 PM

Screen Shot 2019-12-04 at 5 20 55 PM

@vpicone
Copy link
Contributor

vpicone commented Dec 9, 2019

@mjabbink opened #591 to track this. Is there something visually wrong with those figure titles or are you just saying they shouldn't be h4s?

@mjabbink
Copy link
Contributor

mjabbink commented Dec 9, 2019

the spacing under the header is too tight. Not sure what the exact spec is but by best guess is 16 or 24px. @jeanservaas can provide exact pixels.

@mjabbink
Copy link
Contributor

mjabbink commented Dec 9, 2019

also effects here with this header size too. Needs more space under neath above text and image in this case https://www.ibm.com/brand/advertising

Screen Shot 2019-12-09 at 10 35 54 AM

@jeanservaas
Copy link
Contributor Author

the space after the figure title should be 24px -- or rather, allow the image to have the 24px margin top in this scenario.

@mjabbink
Copy link
Contributor

mjabbink commented Dec 9, 2019

What about the larger header in above sample?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
role: dev 🤖 severity: 3 Affects minor functionality, has a workaround type: bug 🐛
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants