You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Typography component with text Heading 1 is displayed using the default theme eg fontSize is 6rem.
Expected behavior
The Typography component should pick up the theme provided by the ThemeProvider. i.e The font size of the h1 should therefore be 1rem as defined in the theme. The color should also be green.
Context
I am trying to apply a theme using ThemeProvider to the Typography component.
Note I am importing mui and react from esm.sh.
Interestingly if I append the import urls with '?dev' then the Typography component does pick up the theme from the ThemeProvider correctly.
Steps to reproduce
Steps:
Current behavior
The Typography component with text Heading 1 is displayed using the default theme eg fontSize is 6rem.
Expected behavior
The Typography component should pick up the theme provided by the ThemeProvider. i.e The font size of the h1 should therefore be 1rem as defined in the theme. The color should also be green.
Context
I am trying to apply a theme using ThemeProvider to the Typography component.
Note I am importing mui and react from esm.sh.
Interestingly if I append the import urls with '?dev' then the Typography component does pick up the theme from the ThemeProvider correctly.
Your environment
The live example is at https://codesandbox.io/p/sandbox/l9tkcj
I am using esm.sh to import.
Search keywords: Typography ThemeProvider
The text was updated successfully, but these errors were encountered: