-
Notifications
You must be signed in to change notification settings - Fork 195
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 fallbacks #248
Font fallbacks #248
Conversation
components/commons/fonts.css
Outdated
--spectrum-font-family-he: 'adobe-hebrew', var(--spectrum-font-fallbacks-sans); | ||
--spectrum-font-family-zhhans: 'adobe-clean-han-simplified-c', 'SimSun', 'Heiti SC Light', var(--spectrum-font-fallbacks-sans); | ||
--spectrum-font-family-zh: var(--spectrum-font-family-zhhans); | ||
--spectrum-font-family-zhhant: 'adobe-clean-han-traditional', 'MingLiu', 'Heiti TC Light', var(--spectrum-font-fallbacks-sans); |
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.
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.
Thanks @tappily! Are you suggesting we change it to:
--spectrum-font-family-zhhant: adobe-clean-han-traditional', 'JhengHei UI', 'JhengHei', 'MingLiu', 'Heiti TC Light', var(--spectrum-font-fallbacks-sans);
Let me know and I'll make the change.
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.
Close. I'd prefer MingLui not be in this list at all. MingLui works for the article/ serif style, but not here.
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.
@tappily ok, updated! Are we good to go?
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.
Sorry, i missed the MS prefix. needs to be "Microsoft JhengHei UI" and "Microsoft JhengHei"
* New, responsive site based on individually versioned components with silly fast navigation, lazy loaded deps as docs are viewed * Basic accessible search with build-time index generation * Update README for individual versioning, add legacy README with legacy usage * Add documentation for site updating and architecture * Add docs for documentation generation, link to docs, remove references to Precursors * Add instructions for adding/editing components * Add docs to show how to update DNA and icons * Add docs for getting DNA variables from @spectrum-css/vars * Document issues with npm ci and installing optional dependencies * Update to DNA 5.18.1 * Update icons to 4.1.0 * Audit DNA status for all components * Add nvmrc * Export a experimental tree-shakable DNA variable object from @spectrum-css/vars * Update Textarea line-height and min-height, closes #231 * Fix spinner buttons appearing on Steppers in Firefox, closes #214 * Fix search field on iOS, closes #229 * Fix Menu chevron vertical alignment, fixes #240 * Fix horizontal alignment of labels in anchor buttons, fixes #239 * Remove button outline when focused in Firefox, fixes #161 * Fix bar loader label in IE 11, fixes #242 * Fix Radio label margins when labels are below, fixes #246 * Fix Checkbox icon color when checkbox imported before icons, fixes #219 (#235) * Add Adobe Clean UX support, closes #189 (#248) * Fix fallback fonts for ar, he, ja, zh-Hans, zh-Hant, and ko, closes #232 (#248) * Removed float from tags, fixes #218 (#237) * Make Slider grab handle look right in docs, closes #255 * Add missing Asset docs, closes #256 * Add Menu .is-highlighted so we can indicate highlight without mis-using .is-open, closes #258 * Support using links as menu items, closes #257 * Fix incorrect height for small BarLoader, fixes #259
* New, responsive site based on individually versioned components with silly fast navigation, lazy loaded deps as docs are viewed * Basic accessible search with build-time index generation * Update README for individual versioning, add legacy README with legacy usage * Add documentation for site updating and architecture * Add docs for documentation generation, link to docs, remove references to Precursors * Add instructions for adding/editing components * Add docs to show how to update DNA and icons * Add docs for getting DNA variables from @spectrum-css/vars * Document issues with npm ci and installing optional dependencies * Update to DNA 5.18.1 * Update icons to 4.1.0 * Audit DNA status for all components * Add nvmrc * Export a experimental tree-shakable DNA variable object from @spectrum-css/vars * Update Textarea line-height and min-height, closes #231 * Fix spinner buttons appearing on Steppers in Firefox, closes #214 * Fix search field on iOS, closes #229 * Fix Menu chevron vertical alignment, fixes #240 * Fix horizontal alignment of labels in anchor buttons, fixes #239 * Remove button outline when focused in Firefox, fixes #161 * Fix bar loader label in IE 11, fixes #242 * Fix Radio label margins when labels are below, fixes #246 * Fix Checkbox icon color when checkbox imported before icons, fixes #219 (#235) * Add Adobe Clean UX support, closes #189 (#248) * Fix fallback fonts for ar, he, ja, zh-Hans, zh-Hant, and ko, closes #232 (#248) * Removed float from tags, fixes #218 (#237) * Make Slider grab handle look right in docs, closes #255 * Add missing Asset docs, closes #256 * Add Menu .is-highlighted so we can indicate highlight without mis-using .is-open, closes #258 * Support using links as menu items, closes #257 * Fix incorrect height for small BarLoader, fixes #259
Update Textarea line-height and min-height, closes #231 Fix spinner buttons appearing on Steppers in Firefox, closes #214 Fix search field on iOS, closes #229 Fix Menu chevron vertical alignment, fixes #240 Fix horizontal alignment of labels in anchor buttons, fixes #239 Remove button outline when focused in Firefox, fixes #161 Fix bar loader label in IE 11, fixes #242 Fix Radio label margins when labels are below, fixes #246 Fix Checkbox icon color when checkbox imported before icons, fixes #219 (#235) Add Adobe Clean UX support, closes #189 (#248) Fix fallback fonts for ar, he, ja, zh-Hans, zh-Hant, and ko, closes #232 (#248) Removed float from tags, fixes #218 (#237) Make Slider grab handle look right in docs, closes #255 Add missing Asset docs, closes #256 Add Menu .is-highlighted so we can indicate highlight without mis-using .is-open, closes #258 Support using links as menu items, closes #257 Fix incorrect height for small BarLoader, fixes #259
Description
This PR fixes fallback fonts for Adobe Clean UX as well as ar, he, ja, zh-Hans, zh-Hant, and ko.
Related Issue
#189
#232
How Has This Been Tested?
Examples have been added for Hebrew that show the new fonts in action. Additionally, the fallbacks for ja, zh-Hans, zh-Hant, and ko have been confirmed with @yloubry
Types of changes