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

fix: use "base" fontFamily in web #5648

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GuilleDF
Copy link

Summary

The fontFamily prop generated currently looks like FontName-MediumItalic. This is generally how it's expected by react-native, but not how a browser would expect it. On web, the font family is generally only FontName and other props such as fontWeight are used in conjunction. This disables the logic to generate this "compound" fontFamily for web.

Changelog

[Web] [Changed] - Use normal fontFamily in web

Test Plan

I ran the testbed and checked the Text stories to see if something broke.

@auto-assign auto-assign bot requested a review from surajahmed January 19, 2023 16:45
@vercel
Copy link

vercel bot commented Jan 19, 2023

@GuilleDF is attempting to deploy a commit to the Geekyants Team Team on Vercel.

A member of the Team first needs to authorize it.

@GuilleDF
Copy link
Author

Update: I added an example for testing, but feel free to discard it if it's not useful :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant