NextJS: Fix fonts not loading with 3+ words in name#23121
Merged
valentinpalkovic merged 1 commit intoJun 19, 2023
Merged
Conversation
Contributor
|
@ygkn Thank you so much for your code contribution! The change looks reasonable to me. Let's merge it as soon as the CI turns green :) |
valentinpalkovic
approved these changes
Jun 19, 2023
JReinhold
pushed a commit
that referenced
this pull request
Jun 19, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
This was referenced Jun 19, 2023
Merged
JReinhold
pushed a commit
that referenced
this pull request
Jun 19, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 19, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 20, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 20, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 20, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 20, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 20, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 21, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 21, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 21, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 21, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 21, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 21, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 21, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 21, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 21, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 21, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
JReinhold
pushed a commit
that referenced
this pull request
Jun 22, 2023
…as-3-words-name NextJS: fix not loading fonts has 3 (or more) words name (cherry picked from commit 0d7c3a8)
Merged
18 tasks
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #22248
What I did
This PR fixes a bug not loading fonts has 3 (or more) words name.
It caused by using
replaceinstead ofreplaceAllwhen getclassNamefrom font family name.Before:

After:

How to test
nextjs/default-tstemplate.NextFont.tsxandNextFontTest.stories.tsxas below in same any directory.Checklist
MIGRATION.MD
Maintainers
make sure to add the
ci:mergedorci:dailyGH label to it.["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]