[docs] MUI free template has a typo in Typography's theme set up #44324
Labels
bug 🐛
Something doesn't work
design
This is about UI or UX design, please involve a designer
docs
Improvements or additions to the documentation
package: material-ui
Specific to @mui/material
Steps to reproduce
Go to https://github.com/mui/material-ui/blob/v6.1.6/docs/data/material/getting-started/templates/shared-theme/themePrimitives.js.
Line 163
fontFamily: ['"Inter", "sans-serif"'].join(','),
should be changed tofontFamily: ["Inter", "sans-serif"].join(','),
Notice how the original array only has one element which is a string.
Current behavior
Browser interprets
"Inter", "sans-serif"
as the font.Expected behavior
Browser choose
"Inter"
or"sans-serif"
in that order.Context
I borrowed the template and found the font doesn't work in chrome/safari but works in edge.
Your environment
chrome, safari render differently from edge
Search keywords: typo
The text was updated successfully, but these errors were encountered: