-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Font improvements, loading fonts in Storybook, and adding more font Chromatic stories #4238
Conversation
@@ -118,6 +118,27 @@ storiesOf('Textfield', module) | |||
)}, false) | |||
); | |||
|
|||
storiesOf('Languages/Textfield', module) |
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.
Adding this story to confirm the state of #3983 with the correct fonts, which is currently a failure.
type IllustratedMessageStory = ComponentStoryObj<typeof IllustratedMessage>; | ||
|
||
export default { | ||
title: 'Languages/IllustratedMessage', |
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.
Proposing all Chromatic font stories are in a "Languages" package, so we can more easily adjust locales without impacting other stories and they aren't spread all over the place.
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
@@ -51,6 +51,64 @@ | |||
font-weight: 900; | |||
} | |||
|
|||
/** pulled from web project id: 'uei1lip' */ |
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.
Allow docs to load the correct font if someone loads the page from an Arabic, Hebrew, Japanese, Korean, or Chinese locale and a component shows a i18n string.
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.
i think we could do what we do here in our storybook
Note: let's test off the PR for this one because merging it would affect the docs in production. |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
packages/dev/docs/src/docs.css
Outdated
} | ||
@font-face { | ||
font-family: "myriad-arabic"; | ||
src: url("https://use.typekit.net/af/d1936b/00000000000000007735a2fd/30/l?unicode=AAAHygAAAAdhg4V2jXrgvTqablOmIuR90xJ6f7oYX7HHszHOhbuHChMcgQn5RM8D_2_09h-EDof5QbhEgbbA63nwPrW_c-fWpSq9I3W2wnPr2mXL5hwU9XCfpfCkLYjBT4lM8H7L4ONWX3ugfaTSwXm4HDcbyteaHuCpkuHywfcZB3Qmfrf-lhmtbmdiEYP1_3wmtwTqUe-84RpPif-WvZba-nEoqF8x54v53DpQrOTj48ldu33mIr3t5_p7J-7EIbKWiAPY-6fOlmzgfKcT52EWvLAE-pP79aefMQlHioFliM5EGken-uDgxR0sm5rfhBd4WUTkH-k-gPs7g-WyugAAAb0&features=NONE&v=3"); |
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.
Do these ones need to have features=ALL as well?
Build successful! 🎉 |
Build successful! 🎉 |
...ages/@react-spectrum/illustratedmessage/chromatic/IllustratedMessage.Languages.chromatic.tsx
Outdated
Show resolved
Hide resolved
@@ -51,6 +51,64 @@ | |||
font-weight: 900; | |||
} | |||
|
|||
/** pulled from web project id: 'uei1lip' */ |
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.
i think we could do what we do here in our storybook
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.
I'm ok with my comments being followup if others are
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
## API Changes
unknown top level export { type: 'identifier', name: 'Column' } |
Closes #4165 #4125 #3834
Adding a story to test #3983 which failed. Will be handled in another sprint.
Note: Chrome dev tools sometimes show the font name and sometimes an id. The Firefox dev tools have a fonts tab that shows both the id and the font name.
✅ Pull Request Checklist:
📝 Test Instructions:
Run chromatic and confirm that the CCJK fonts are not italic.
Run chromatic locally and check via dev tools that the correct fonts are used. Look at the new "Languages" grouping for font stories.
Check the new provider locale zh-Hant font family Storybook story to see the rendered font via dev tools.
🧢 Your Project:
RSP