international-labour-organization / designsystem

A design system for the International Labour Organization
Apache License 2.0
1 stars 3 forks source link

Describe spacing between components #1060

Open inesdgomes opened 2 weeks ago

inesdgomes commented 2 weeks ago

Currently in the ILO website:

Should it be?

Possible exceptions:

We need to ensure whatever spacing is defined here kind of matches what we define for headings in the rich text. See https://github.com/international-labour-organization/designsystem/issues/1059

beatrizmartinmartins commented 6 days ago

@inesdgomes Hey! So this depends a lot on the template. Sometimes the accordion for example, they way it is displayed, needs one top or bottom spacing or another. This doesn't really depends on the components, but rather on the template. We can include a few spacings, like the SectionDivider one but I don't feel like we can do that on a lot of places honestly.

For example on this screenshot, the SectionDivider can have a top spacing and bottom spacing that is different because it's a divider, but for example if we have a top and bottom spacing on the button of 16px for example, then we would need to make adjustments on every single page for this to work.

Image

If you'd like we can talk about it during our meeting