Skip to content

Commit

Permalink
fix: various small design bug fixes (#318)
Browse files Browse the repository at this point in the history
* refactor: set header margin to correct value

* refactor: fix footer heading fonts
  • Loading branch information
melaniebmn authored Sep 12, 2024
1 parent ad84c2d commit 182270f
Show file tree
Hide file tree
Showing 13 changed files with 66 additions and 32 deletions.
29 changes: 21 additions & 8 deletions build/figma/figma.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -2280,13 +2280,26 @@
}
},
"font": {
"value": {
"fontFamily": "\"Noto Sans\", sans-serif",
"fontWeight": "400",
"lineHeight": "135%",
"fontSize": "1.1111111111111112rem"
},
"type": "typography"
"heading": {
"desktop": {
"value": {
"fontFamily": "\"Lato\", sans-serif",
"fontWeight": "700",
"lineHeight": "126.41975308641975%",
"fontSize": "1.58203125rem"
},
"type": "typography"
},
"mobile": {
"value": {
"fontFamily": "\"Lato\", sans-serif",
"fontWeight": "700",
"lineHeight": "138.27160493827162%",
"fontSize": "1.265625rem"
},
"type": "typography"
}
}
},
"list": {
"gridGap": {
Expand Down Expand Up @@ -2471,7 +2484,7 @@
}
},
"margin": {
"value": "0 0 0.75rem",
"value": "0 0 3.75rem",
"type": "spacing"
},
"skiptonav": {
Expand Down
5 changes: 3 additions & 2 deletions build/web/css/.css
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,8 @@
--gcds-footer-contextual-background: #33465c;
--gcds-footer-contextual-padding: 1.125rem 0;
--gcds-footer-contextual-text: #ffffff;
--gcds-footer-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
--gcds-footer-font-heading-desktop: 700 1.58203125rem/126.41975308641975% "Lato", sans-serif;
--gcds-footer-font-heading-mobile: 700 1.265625rem/138.27160493827162% "Lato", sans-serif;
--gcds-footer-list-grid-gap: 0.75rem;
--gcds-footer-list-padding: 0;
--gcds-footer-listitem-margin: 0 0 1.125rem;
Expand Down Expand Up @@ -456,7 +457,7 @@
--gcds-header-brand-signature-margin: 0 0 0.375rem;
--gcds-header-brand-toggle-padding: 0 1.125rem;
--gcds-header-container-max-width: 71.25rem;
--gcds-header-margin: 0 0 0.75rem;
--gcds-header-margin: 0 0 3.75rem;
--gcds-header-skiptonav-top: 1.5rem;
--gcds-heading-character-limit-h1: 31ch;
--gcds-heading-character-limit-h2: 35ch;
Expand Down
5 changes: 3 additions & 2 deletions build/web/css/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@
--gcds-footer-contextual-background: #33465c;
--gcds-footer-contextual-padding: 1.125rem 0;
--gcds-footer-contextual-text: #ffffff;
--gcds-footer-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
--gcds-footer-font-heading-desktop: 700 1.58203125rem/126.41975308641975% "Lato", sans-serif;
--gcds-footer-font-heading-mobile: 700 1.265625rem/138.27160493827162% "Lato", sans-serif;
--gcds-footer-list-grid-gap: 0.75rem;
--gcds-footer-list-padding: 0;
--gcds-footer-listitem-margin: 0 0 1.125rem;
Expand Down Expand Up @@ -310,7 +311,7 @@
--gcds-header-brand-signature-margin: 0 0 0.375rem;
--gcds-header-brand-toggle-padding: 0 1.125rem;
--gcds-header-container-max-width: 71.25rem;
--gcds-header-margin: 0 0 0.75rem;
--gcds-header-margin: 0 0 3.75rem;
--gcds-header-skiptonav-top: 1.5rem;
--gcds-heading-character-limit-h1: 31ch;
--gcds-heading-character-limit-h2: 35ch;
Expand Down
3 changes: 2 additions & 1 deletion build/web/css/components/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
--gcds-footer-contextual-background: #33465c;
--gcds-footer-contextual-padding: 1.125rem 0;
--gcds-footer-contextual-text: #ffffff;
--gcds-footer-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
--gcds-footer-font-heading-desktop: 700 1.58203125rem/126.41975308641975% "Lato", sans-serif;
--gcds-footer-font-heading-mobile: 700 1.265625rem/138.27160493827162% "Lato", sans-serif;
--gcds-footer-list-grid-gap: 0.75rem;
--gcds-footer-list-padding: 0;
--gcds-footer-listitem-margin: 0 0 1.125rem;
Expand Down
2 changes: 1 addition & 1 deletion build/web/css/components/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
--gcds-header-brand-signature-margin: 0 0 0.375rem;
--gcds-header-brand-toggle-padding: 0 1.125rem;
--gcds-header-container-max-width: 71.25rem;
--gcds-header-margin: 0 0 0.75rem;
--gcds-header-margin: 0 0 3.75rem;
--gcds-header-skiptonav-top: 1.5rem;
}
5 changes: 3 additions & 2 deletions build/web/css/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,8 @@
--gcds-footer-contextual-background: #33465c;
--gcds-footer-contextual-padding: 1.125rem 0;
--gcds-footer-contextual-text: #ffffff;
--gcds-footer-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
--gcds-footer-font-heading-desktop: 700 1.58203125rem/126.41975308641975% "Lato", sans-serif;
--gcds-footer-font-heading-mobile: 700 1.265625rem/138.27160493827162% "Lato", sans-serif;
--gcds-footer-list-grid-gap: 0.75rem;
--gcds-footer-list-padding: 0;
--gcds-footer-listitem-margin: 0 0 1.125rem;
Expand Down Expand Up @@ -456,7 +457,7 @@
--gcds-header-brand-signature-margin: 0 0 0.375rem;
--gcds-header-brand-toggle-padding: 0 1.125rem;
--gcds-header-container-max-width: 71.25rem;
--gcds-header-margin: 0 0 0.75rem;
--gcds-header-margin: 0 0 3.75rem;
--gcds-header-skiptonav-top: 1.5rem;
--gcds-heading-character-limit-h1: 31ch;
--gcds-heading-character-limit-h2: 35ch;
Expand Down
5 changes: 3 additions & 2 deletions build/web/scss/.scss
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,8 @@ $gcds-footer-container-width: 71.25rem;
$gcds-footer-contextual-background: #33465c;
$gcds-footer-contextual-padding: 1.125rem 0;
$gcds-footer-contextual-text: #ffffff;
$gcds-footer-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
$gcds-footer-font-heading-desktop: 700 1.58203125rem/126.41975308641975% "Lato", sans-serif;
$gcds-footer-font-heading-mobile: 700 1.265625rem/138.27160493827162% "Lato", sans-serif;
$gcds-footer-list-grid-gap: 0.75rem;
$gcds-footer-list-padding: 0;
$gcds-footer-listitem-margin: 0 0 1.125rem;
Expand Down Expand Up @@ -454,7 +455,7 @@ $gcds-header-brand-padding: 0 0 0.375rem;
$gcds-header-brand-signature-margin: 0 0 0.375rem;
$gcds-header-brand-toggle-padding: 0 1.125rem;
$gcds-header-container-max-width: 71.25rem;
$gcds-header-margin: 0 0 0.75rem;
$gcds-header-margin: 0 0 3.75rem;
$gcds-header-skiptonav-top: 1.5rem;
$gcds-heading-character-limit-h1: 31ch;
$gcds-heading-character-limit-h2: 35ch;
Expand Down
5 changes: 3 additions & 2 deletions build/web/scss/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ $gcds-footer-container-width: 71.25rem;
$gcds-footer-contextual-background: #33465c;
$gcds-footer-contextual-padding: 1.125rem 0;
$gcds-footer-contextual-text: #ffffff;
$gcds-footer-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
$gcds-footer-font-heading-desktop: 700 1.58203125rem/126.41975308641975% "Lato", sans-serif;
$gcds-footer-font-heading-mobile: 700 1.265625rem/138.27160493827162% "Lato", sans-serif;
$gcds-footer-list-grid-gap: 0.75rem;
$gcds-footer-list-padding: 0;
$gcds-footer-listitem-margin: 0 0 1.125rem;
Expand Down Expand Up @@ -308,7 +309,7 @@ $gcds-header-brand-padding: 0 0 0.375rem;
$gcds-header-brand-signature-margin: 0 0 0.375rem;
$gcds-header-brand-toggle-padding: 0 1.125rem;
$gcds-header-container-max-width: 71.25rem;
$gcds-header-margin: 0 0 0.75rem;
$gcds-header-margin: 0 0 3.75rem;
$gcds-header-skiptonav-top: 1.5rem;
$gcds-heading-character-limit-h1: 31ch;
$gcds-heading-character-limit-h2: 35ch;
Expand Down
3 changes: 2 additions & 1 deletion build/web/scss/components/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ $gcds-footer-container-width: 71.25rem;
$gcds-footer-contextual-background: #33465c;
$gcds-footer-contextual-padding: 1.125rem 0;
$gcds-footer-contextual-text: #ffffff;
$gcds-footer-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
$gcds-footer-font-heading-desktop: 700 1.58203125rem/126.41975308641975% "Lato", sans-serif;
$gcds-footer-font-heading-mobile: 700 1.265625rem/138.27160493827162% "Lato", sans-serif;
$gcds-footer-list-grid-gap: 0.75rem;
$gcds-footer-list-padding: 0;
$gcds-footer-listitem-margin: 0 0 1.125rem;
Expand Down
2 changes: 1 addition & 1 deletion build/web/scss/components/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ $gcds-header-brand-padding: 0 0 0.375rem;
$gcds-header-brand-signature-margin: 0 0 0.375rem;
$gcds-header-brand-toggle-padding: 0 1.125rem;
$gcds-header-container-max-width: 71.25rem;
$gcds-header-margin: 0 0 0.75rem;
$gcds-header-margin: 0 0 3.75rem;
$gcds-header-skiptonav-top: 1.5rem;
5 changes: 3 additions & 2 deletions build/web/scss/tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,8 @@ $gcds-footer-container-width: 71.25rem;
$gcds-footer-contextual-background: #33465c;
$gcds-footer-contextual-padding: 1.125rem 0;
$gcds-footer-contextual-text: #ffffff;
$gcds-footer-font: 400 1.1111111111111112rem/135% "Noto Sans", sans-serif;
$gcds-footer-font-heading-desktop: 700 1.58203125rem/126.41975308641975% "Lato", sans-serif;
$gcds-footer-font-heading-mobile: 700 1.265625rem/138.27160493827162% "Lato", sans-serif;
$gcds-footer-list-grid-gap: 0.75rem;
$gcds-footer-list-padding: 0;
$gcds-footer-listitem-margin: 0 0 1.125rem;
Expand Down Expand Up @@ -454,7 +455,7 @@ $gcds-header-brand-padding: 0 0 0.375rem;
$gcds-header-brand-signature-margin: 0 0 0.375rem;
$gcds-header-brand-toggle-padding: 0 1.125rem;
$gcds-header-container-max-width: 71.25rem;
$gcds-header-margin: 0 0 0.75rem;
$gcds-header-margin: 0 0 3.75rem;
$gcds-header-skiptonav-top: 1.5rem;
$gcds-heading-character-limit-h1: 31ch;
$gcds-heading-character-limit-h2: 35ch;
Expand Down
27 changes: 20 additions & 7 deletions tokens/components/footer/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,26 @@
}
},
"font": {
"value": {
"fontFamily": "{fontFamilies.body}",
"fontWeight": "{fontWeights.regular}",
"lineHeight": "{lineHeights.caption}",
"fontSize": "{fontSizes.caption}"
},
"type": "typography"
"heading": {
"desktop": {
"value": {
"fontFamily": "{fontFamilies.heading}",
"fontWeight": "{fontWeights.bold}",
"lineHeight": "{lineHeights.h5}",
"fontSize": "{fontSizes.h5}"
},
"type": "typography"
},
"mobile": {
"value": {
"fontFamily": "{fontFamilies.heading}",
"fontWeight": "{fontWeights.bold}",
"lineHeight": "{lineHeights.h5Mobile}",
"fontSize": "{fontSizes.h5Mobile}"
},
"type": "typography"
}
}
},
"list": {
"gridGap": {
Expand Down
2 changes: 1 addition & 1 deletion tokens/components/header/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}
},
"margin": {
"value": "0 0 {spacing.200.value}",
"value": "0 0 {spacing.550.value}",
"type": "spacing"
},
"skiptonav": {
Expand Down

0 comments on commit 182270f

Please sign in to comment.