Skip to content

Commit

Permalink
feat!: new tokens for search component mobile text (#321)
Browse files Browse the repository at this point in the history
replaces font.value with font.desktop.value and font.mobile.value
  • Loading branch information
daine authored Sep 13, 2024
1 parent e0524e5 commit f4bdabe
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 20 deletions.
23 changes: 17 additions & 6 deletions build/figma/figma.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -3831,13 +3831,24 @@
}
},
"font": {
"value": {
"fontFamily": "\"Noto Sans\", sans-serif",
"fontWeight": "400",
"lineHeight": "120%",
"fontSize": "1.25rem"
"desktop": {
"value": {
"fontFamily": "\"Noto Sans\", sans-serif",
"fontWeight": "400",
"lineHeight": "120%",
"fontSize": "1.25rem"
},
"type": "typography"
},
"type": "typography"
"mobile": {
"value": {
"fontFamily": "\"Noto Sans\", sans-serif",
"fontWeight": "400",
"lineHeight": "120%",
"fontSize": "1rem"
},
"type": "typography"
}
},
"margin": {
"value": "0 0 0.1875rem",
Expand Down
3 changes: 2 additions & 1 deletion build/web/css/.css
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,8 @@
--gcds-search-focus-border-radius: 0.1875rem;
--gcds-search-focus-box-shadow: 0 0 0 0.125rem #ffffff;
--gcds-search-focus-text: #0535d2;
--gcds-search-font: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-search-font-desktop: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-search-font-mobile: 400 1rem/120% "Noto Sans", sans-serif;
--gcds-search-margin: 0 0 0.1875rem;
--gcds-search-min-width-and-height: 3rem;
--gcds-search-outline-width: 0.1875rem;
Expand Down
3 changes: 2 additions & 1 deletion build/web/css/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,8 @@
--gcds-search-focus-border-radius: 0.1875rem;
--gcds-search-focus-box-shadow: 0 0 0 0.125rem #ffffff;
--gcds-search-focus-text: #0535d2;
--gcds-search-font: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-search-font-desktop: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-search-font-mobile: 400 1rem/120% "Noto Sans", sans-serif;
--gcds-search-margin: 0 0 0.1875rem;
--gcds-search-min-width-and-height: 3rem;
--gcds-search-outline-width: 0.1875rem;
Expand Down
3 changes: 2 additions & 1 deletion build/web/css/components/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
--gcds-search-focus-border-radius: 0.1875rem;
--gcds-search-focus-box-shadow: 0 0 0 0.125rem #ffffff;
--gcds-search-focus-text: #0535d2;
--gcds-search-font: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-search-font-desktop: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-search-font-mobile: 400 1rem/120% "Noto Sans", sans-serif;
--gcds-search-margin: 0 0 0.1875rem;
--gcds-search-min-width-and-height: 3rem;
--gcds-search-outline-width: 0.1875rem;
Expand Down
3 changes: 2 additions & 1 deletion build/web/css/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,8 @@
--gcds-search-focus-border-radius: 0.1875rem;
--gcds-search-focus-box-shadow: 0 0 0 0.125rem #ffffff;
--gcds-search-focus-text: #0535d2;
--gcds-search-font: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-search-font-desktop: 400 1.25rem/120% "Noto Sans", sans-serif;
--gcds-search-font-mobile: 400 1rem/120% "Noto Sans", sans-serif;
--gcds-search-margin: 0 0 0.1875rem;
--gcds-search-min-width-and-height: 3rem;
--gcds-search-outline-width: 0.1875rem;
Expand Down
3 changes: 2 additions & 1 deletion build/web/scss/.scss
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@ $gcds-search-default-text: #333333;
$gcds-search-focus-border-radius: 0.1875rem;
$gcds-search-focus-box-shadow: 0 0 0 0.125rem #ffffff;
$gcds-search-focus-text: #0535d2;
$gcds-search-font: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-search-font-desktop: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-search-font-mobile: 400 1rem/120% "Noto Sans", sans-serif;
$gcds-search-margin: 0 0 0.1875rem;
$gcds-search-min-width-and-height: 3rem;
$gcds-search-outline-width: 0.1875rem;
Expand Down
3 changes: 2 additions & 1 deletion build/web/scss/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,8 @@ $gcds-search-default-text: #333333;
$gcds-search-focus-border-radius: 0.1875rem;
$gcds-search-focus-box-shadow: 0 0 0 0.125rem #ffffff;
$gcds-search-focus-text: #0535d2;
$gcds-search-font: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-search-font-desktop: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-search-font-mobile: 400 1rem/120% "Noto Sans", sans-serif;
$gcds-search-margin: 0 0 0.1875rem;
$gcds-search-min-width-and-height: 3rem;
$gcds-search-outline-width: 0.1875rem;
Expand Down
3 changes: 2 additions & 1 deletion build/web/scss/components/search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ $gcds-search-default-text: #333333;
$gcds-search-focus-border-radius: 0.1875rem;
$gcds-search-focus-box-shadow: 0 0 0 0.125rem #ffffff;
$gcds-search-focus-text: #0535d2;
$gcds-search-font: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-search-font-desktop: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-search-font-mobile: 400 1rem/120% "Noto Sans", sans-serif;
$gcds-search-margin: 0 0 0.1875rem;
$gcds-search-min-width-and-height: 3rem;
$gcds-search-outline-width: 0.1875rem;
Expand Down
3 changes: 2 additions & 1 deletion build/web/scss/tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@ $gcds-search-default-text: #333333;
$gcds-search-focus-border-radius: 0.1875rem;
$gcds-search-focus-box-shadow: 0 0 0 0.125rem #ffffff;
$gcds-search-focus-text: #0535d2;
$gcds-search-font: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-search-font-desktop: 400 1.25rem/120% "Noto Sans", sans-serif;
$gcds-search-font-mobile: 400 1rem/120% "Noto Sans", sans-serif;
$gcds-search-margin: 0 0 0.1875rem;
$gcds-search-min-width-and-height: 3rem;
$gcds-search-outline-width: 0.1875rem;
Expand Down
23 changes: 17 additions & 6 deletions tokens/components/search/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,24 @@
}
},
"font": {
"value": {
"fontFamily": "{fontFamilies.body}",
"fontWeight": "{fontWeights.regular}",
"lineHeight": "{lineHeights.text}",
"fontSize": "{fontSizes.text}"
"desktop": {
"value": {
"fontFamily": "{fontFamilies.body}",
"fontWeight": "{fontWeights.regular}",
"lineHeight": "{lineHeights.text}",
"fontSize": "{fontSizes.text}"
},
"type": "typography"
},
"type": "typography"
"mobile": {
"value": {
"fontFamily": "{fontFamilies.body}",
"fontWeight": "{fontWeights.regular}",
"lineHeight": "{lineHeights.text}",
"fontSize": "{fontSizes.textMobile}"
},
"type": "typography"
}
},
"margin": {
"value": "0 0 {spacing.50.value}",
Expand Down

0 comments on commit f4bdabe

Please sign in to comment.