[material-ui][Typography] Migrating from v4 to v5 issue #41954
Labels
component: Typography
The React component.
package: material-ui
Specific to @mui/material
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
v5.x migration
Steps to reproduce
This is my theme
when using the useTheme hook, i can see my custom theme, but when using native mui component, if i inspect them with dev tools, i can see my custom props below been overwritten by default one .css-MuiTypography- root is been overwritten by .MuiTypography-subtitle1
im using the subtitle1 variant
i tried this approach
but no luck, i can see the color red in the font, but not the size or other properties that are been overwritten, also i have my mode set to dark, but my font is still black, they should be white, so somehow, the custom theme is not been applied correctly
my imports
Current behavior
No response
Expected behavior
No response
Context
Im trying to update from mui v4 to mui v5, but my custom theme its been overwrite by the default one, in chrome dev tools, i can see my custom theme props, but they been overwritten by the default one
Your environment
npx @mui/envinfo
Search keywords: typography
The text was updated successfully, but these errors were encountered: