Skip to content

Commit

Permalink
Merge pull request #23121 from ygkn/next-font-fix-not-loading-fonts-h…
Browse files Browse the repository at this point in the history
…as-3-words-name

NextJS: fix not loading fonts has 3 (or more) words name
(cherry picked from commit 0d7c3a8)
  • Loading branch information
valentinpalkovic authored and github-actions[bot] committed Jun 21, 2023
1 parent 2a12a93 commit e289c99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function getCSSMeta(options: Options) {
}

function getClassName({ styles, weights, fontFamily }: Options) {
const font = fontFamily.replace(' ', '-').toLowerCase();
const font = fontFamily.replaceAll(' ', '-').toLowerCase();
const style = isNextCSSPropertyValid(styles) ? styles[0] : null;
const weight = isNextCSSPropertyValid(weights) ? weights[0] : null;

Expand Down

0 comments on commit e289c99

Please sign in to comment.