Skip to content
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

[Feature] Remove font imports #494

Merged
merged 3 commits into from
Aug 17, 2021
Merged

Conversation

aappoalander
Copy link
Contributor

Description

This PR removes internal font imports from global styles and adds documentation for adding the imports externally.

Motivation and Context

Font imports were included in the global styles for the library. The fonts were imported from google, which made it impossible to use self served fonts and created problems with CORS policies.

How Has This Been Tested?

Tested using styleguidist and Create React App Typescript project using Mac OS and Chrome.

Release notes

Fonts

  • Breaking change: Remove font imports from library provided css. Font's have to be imported separately from now on.

@aappoalander aappoalander self-assigned this Aug 13, 2021
@aappoalander aappoalander added dependencies Pull requests that update a dependency file enhancement New feature or request labels Aug 13, 2021
README.md Outdated Show resolved Hide resolved
ketsappi
ketsappi previously approved these changes Aug 17, 2021
Copy link
Contributor

@ketsappi ketsappi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with cra-TS project.

macOS + Brave
Already having the Source Sans Pro font on my pc, so couldn't see any change. Which is expected, of course.

iOS + Safari
As iOS do not have the font installed; by default it is using fallback fonts and after importing the font like in the provided example, the library fonts seems correct.

Seems to work great!

@aappoalander aappoalander merged commit 2b7f134 into develop Aug 17, 2021
@aappoalander aappoalander mentioned this pull request Oct 4, 2021
@aappoalander aappoalander deleted the feature/remove-font-import branch October 13, 2021 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants