-
Notifications
You must be signed in to change notification settings - Fork 96
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(font): add option to use new red hat font #1813
Conversation
Deploy preview for pf-next ready! Built with commit dbd378c |
@christiemolloy yep, all of the |
@mcoker great yeah I saw your comment above, I think that option would work better. |
3772cc1
to
ca422d2
Compare
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.
Looks great to me!
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.
Beautiful!
🎉 This PR is included in version 2.18.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
With this implementation, two sets of font files are shipping regardless of which one is being used. This seems less than ideal. Any reason why the SASS doesn't only include the relevant fonts based upon a variable? cc: @spadgett |
Hey @rhamilto! We discussed this approach and since we have a lot of users that don't use SCSS and import CSS directly, we wanted to have a single approach for everyone. Firefox, Chrome, and Safari only download fonts that are used on the page, so those browsers shouldn't download Overpass, even if it's included in the CSS. That said, if this approach doesn't work for you, I'm happy to offer an alternate solution for you or anyone else that might have these same concerns. |
The issue is not the browsers downloading the fonts, but the fonts being distributed with the app. We're shipping an extra 500 kb of fonts our app doesn't use! |
Seems like there should be an optional SASS variable available to switch the inclusion of the correct fonts. |
Added a wiki page on how to achieve what @rhamilto wants: https://github.com/patternfly/patternfly-next/wiki/Overpass-vs-Red-Hat-Font |
fixes #1524