-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[joy-ui][Checkbox] Not using the correct font in the Next.js example #41735
Comments
Hey! 👋 Thanks for opening this issue; seeing Joy UI usage is awesome! Just passing by to share that the team might take a bit longer to get back to Joy UI-related issues due to the focus on the two major releases coming up for Material UI. Didn’t want to leave issues with the “waiting maintainer” status forever :) Definitely feel free to share any progress you’ve had on the issue, if any, though! |
Hi, I am not associated with the project, but I was unable to replicate your issue; i.e. utilizing a checkbox shows a font-family of Inter, using the provided template, at least in Firefox. If you have made changes to the
If you have made changes to the
Hope this helps |
Hmm, very interesting. I did neither, I just clicked on
and added import Checkbox from '@mui/joy/Checkbox';
<Checkbox label="I'm a checkbox, but I'm not in Inter" /> Does the stackblitz link at the start of the issue render the font correctly for you? |
Stackblitz fails for me altogether, sadly. Perhaps it is an issue with running the project in Stackblitz? |
Try codesandbox, issue reproduces there also: |
Loaded the provided codesandbox, but it appears to be using the expected font for the checkbox label: Edit/P.S.: I will note that the checkbox itself appears to have a font-family of cantarell for whatever reason, but all actual text seems correct |
Steps to reproduce
Link to live example: https://stackblitz.com/edit/github-esh8an?file=src%2Fapp%2Fpage.tsx
Steps:
Current behavior
Checkbox has wrong font, in my case MS Shell Dig 2:
![image](https://private-user-images.githubusercontent.com/17963791/318429034-e54e71c2-aa5d-449d-baee-d9b6d0649b09.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNzE0MTIsIm5iZiI6MTczOTI3MTExMiwicGF0aCI6Ii8xNzk2Mzc5MS8zMTg0MjkwMzQtZTU0ZTcxYzItYWE1ZC00NDlkLWJhZWUtZDliNmQwNjQ5YjA5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDEwNTE1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJmNzMwYmJmN2MwMjUzYjRlM2U4NWMyYjE4YTMwMGYwNGQzZTg1MjkwYjkxZDFiZjNiMzQ5MzkwMzE1MTU4M2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.YyBBJf6Mf2JlqJ4RrF_RixYpQyaVdA1gm7McJagEJdY)
Expected behavior
It has Inter font like everything else.
Context
I copied https://github.com/mui/material-ui/tree/next/examples/joy-ui-nextjs-ts/src/components/ThemeRegistry because #38082 is not there yet, and found this issue.
I did not test a lot of other components to see if this is checkbox-only issue, but text and buttons work.
Your environment
npx @mui/envinfo
System:
OS: Windows 11 10.0.22631
Binaries:
Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
pnpm: 8.15.5 - ~\AppData\Roaming\npm\pnpm.CMD
Browsers:
Chrome: Not Found
Edge: Chromium (123.0.2420.65)
Firefox: 125.0b6 (64-bit)
npmPackages:
@emotion/react: 11.11.4 => 11.11.4
@emotion/styled: 11.11.5 => 11.11.5
@mui/base: 5.0.0-beta.40 => 5.0.0-beta.40
@mui/icons-material: 5.15.14 => 5.15.14
@mui/joy: 5.0.0-beta.32 => 5.0.0-beta.32
@mui/system: ^5.15.14 => 5.15.14
@types/react: 18.2.73 => 18.2.73
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
typescript: 5.4.3 => 5.4.3
Search keywords: font next.js Inter Checkbox theme font-family
The text was updated successfully, but these errors were encountered: