Skip to content

Commit

Permalink
Fix font style and font weight output using ternaries instead of null…
Browse files Browse the repository at this point in the history
… coersion
  • Loading branch information
LewisDaleUK committed Nov 28, 2024
1 parent f694f67 commit ae4b8d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/common/templates/css/fonts.css.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default (tokens) =>
return `@font-face {
font-family: "${font.name.value}";
src: ${fileFormatArr.join(',\n\t\t')};
${font.style ?? `\n font-style: ${font.style.value};`}${
font.weight ?? `\n font-weight: ${font.weight.value};`
${font.style ? `\n font-style: ${font.style.value};` : ''}${
font.weight ? `\n font-weight: ${font.weight.value};` : ''
}}`;
})}`;

0 comments on commit ae4b8d5

Please sign in to comment.