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

Material UI 4.x ignores bodyFontFamily #241

Open
clarmso opened this issue Dec 16, 2019 · 1 comment
Open

Material UI 4.x ignores bodyFontFamily #241

clarmso opened this issue Dec 16, 2019 · 1 comment

Comments

@clarmso
Copy link

clarmso commented Dec 16, 2019

A theme from typography.js works with Material UI 3.x, but the theme may not be applied once I upgraded to Material UI 4.x.

Here is a codesandbox on how to reproduce the bug:
https://codesandbox.io/s/gatsby-starter-haezl-zru2v

This Gatsby theme uses the fairyGatesTheme from typography.js, which has "Quattrocento Sans" as the body's font. The default body font for Material UI is Roboto. When material-ui/core 3.x is installed, the body's font is Quattrocento. When material-ui/core 4.x is installed, the body's font is Roboto.

I have not found a workaround other than sticking with Material UI 3.x. Please feel free to suggest that this issue may be related to gatsby-plugin-typography or material-ui/core instead.

@clarmso
Copy link
Author

clarmso commented Dec 16, 2019

Maybe duplicate of #236

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

No branches or pull requests

1 participant