-
Notifications
You must be signed in to change notification settings - Fork 114
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
feat: add localized fonts to support i18n #2298
Conversation
🦋 Changeset detectedLatest commit: 77b4c3f The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -1,3 +1,7 @@ | |||
aliases: | |||
font-family-10: "'Inter var experimental', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif" | |||
font-family-20: "'Fira Mono', 'Courier New', Courier, monospace" | |||
font-family-ja: "'Inter var experimental', 'Inter var', Hiragino Sans, 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, Osaka, 'MS PGothic', sans-serif" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: the other font family aliases use a number, but it felt kind of weird for this case. What should the alias name be?
font-family-ja
, font-family-30
, or font-family-ja-10
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General naming convention for alias is that they are number steps. They are generic, buckets of values that have no meaning, and we don't need to think about naming them when adding more.
I'd go with font-family-30 personally
</Button> | ||
<Input aria-label="Search" placeholder="ダミーテキスト" type="text" /> | ||
<Select aria-label="Options"> | ||
<Option value="option1">ダミーテキスト</Option> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this says "dummy text"... I read somewhere that Japan doesn't really have lorem ipsum the way we do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: good research!
✔️ Deploy Preview for paste-theme-designer ready! 🔨 Explore the source changes: 3ddcfc8 🔍 Inspect the deploy log: https://app.netlify.com/sites/paste-theme-designer/deploys/6232589757ea86000819c625 😎 Browse the preview: https://deploy-preview-2298--paste-theme-designer.netlify.app |
✔️ Deploy Preview for paste-docs ready! 🔨 Explore the source changes: 3ddcfc8 🔍 Inspect the deploy log: https://app.netlify.com/sites/paste-docs/deploys/623258978e907700083c1f46 😎 Browse the preview: https://deploy-preview-2298--paste-docs.netlify.app |
Size Change: +980 B (0%) Total Size: 510 kB
ℹ️ View Unchanged
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 77b4c3f:
|
✅ Deploy Preview for paste-theme-designer ready! 🔨 Explore the source changes: 77b4c3f 🔍 Inspect the deploy log: https://app.netlify.com/sites/paste-theme-designer/deploys/6234f276865e7a0009d7e6a5 😎 Browse the preview: https://deploy-preview-2298--paste-theme-designer.netlify.app |
✅ Deploy Preview for paste-docs ready! 🔨 Explore the source changes: 77b4c3f 🔍 Inspect the deploy log: https://app.netlify.com/sites/paste-docs/deploys/6234f276702de5000826bd13 😎 Browse the preview: https://deploy-preview-2298--paste-docs.netlify.app |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before I give final approval I'd like to see the storybook and chromatic builds, but everything looks nice and neat. Really like where it landed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So good 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome, well done Lee!
font-family-text-japanese: | ||
value: "{!font-family-30}" | ||
font-family-text-korean: | ||
value: "{!font-family-40}" | ||
font-family-text-chinese-traditional: | ||
value: "{!font-family-50}" | ||
font-family-text-chinese-simplified: | ||
value: "{!font-family-60}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: I really like this approach and think it's going to be useful if we need flexibility in the future. So good!
</Button> | ||
<Input aria-label="Search" placeholder="ダミーテキスト" type="text" /> | ||
<Select aria-label="Options"> | ||
<Option value="option1">ダミーテキスト</Option> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: good research!
font-family-30
,font-family-40
,font-family-50
,font-family-60
font-family-text-japanese
,font-family-text-korean
,font-family-text-chinese-traditional
,font-family-text-chinese-simplified
class='paste-theme-provider'
tothemeProvider
'inherit'
(if not monospace)react-helmet
as a devDependencyContributing to Twilio