notistack overrides the app's font

Created on 19 Jun 2019  路  3Comments  路  Source: iamhosseindhv/notistack

Expected Behavior

notistack should not override the web fonts

Current Behavior

It overrides the font whenever it appears on the screen

Steps to Reproduce

Just use material-ui with the custom font, unlike default Roboto

font override

Your Environment

I use CRA

| Tech | Version |
|--------------|---------|
| Notistack | v0.8.6 |
| React | v16.8.6 |
| Browser | Chrome |
|@material-ui/core |v4.1.1 |
|@material-ui/icons |v4.2.0 |
|@material-ui/pickers |v3.1.1 |
|@material-ui/styles |v4.1.1 |

Most helpful comment

I think I had that problem recently: Make sure to have the SnackbarProvider inside the MutiThemeProvider.

All 3 comments

I think I had that problem recently: Make sure to have the SnackbarProvider inside the MutiThemeProvider.

Thanks @DASPRiD
Please confirm if the solution above solves your issue, otherwise please provide a sandbox reproduction.

Thanks.

Hello,

I have the same issue. It is reproducible using Mui 4.1.3 using a custom font for typography and notistack 0.8.8.
Moving SnackbarProvider inside the MutiThemeProvider didn't solve the issue for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seannguyn picture seannguyn  路  4Comments

Gareon picture Gareon  路  3Comments

ksavery picture ksavery  路  3Comments

james-cordeiro picture james-cordeiro  路  6Comments

nebojsanb picture nebojsanb  路  3Comments