-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NextJS: Fix fonts not loading with 3+ words in name #23121
Merged
valentinpalkovic
merged 1 commit into
storybookjs:next
from
ygkn:next-font-fix-not-loading-fonts-has-3-words-name
Jun 19, 2023
Merged
NextJS: Fix fonts not loading with 3+ words in name #23121
valentinpalkovic
merged 1 commit into
storybookjs:next
from
ygkn:next-font-fix-not-loading-fonts-has-3-words-name
Jun 19, 2023
Conversation
This file contains 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
@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
valentinpalkovic
added
the
patch:yes
Bugfix & documentation PR that need to be picked to main branch
label
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
shilman
changed the title
NextJS: fix not loading fonts has 3 (or more) words name
NextJS: Fix fonts not loading with 3+ words in name
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)
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
shilman
added
the
patch:done
Patch/release PRs already cherry-picked to main/release branch
label
Jun 27, 2023
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
patch:done
Patch/release PRs already cherry-picked to main/release branch
patch:yes
Bugfix & documentation PR that need to be picked to main branch
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
replace
instead ofreplaceAll
when getclassName
from font family name.Before:
After:
How to test
nextjs/default-ts
template.NextFont.tsx
andNextFontTest.stories.tsx
as below in same any directory.Checklist
MIGRATION.MD
Maintainers
make sure to add the
ci:merged
orci:daily
GH label to it.["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]