Skip to content
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

Snackbar background color is not as expected with CssVarProvider #41615

Closed
michael-land opened this issue Mar 24, 2024 · 0 comments · Fixed by #41616
Closed

Snackbar background color is not as expected with CssVarProvider #41615

michael-land opened this issue Mar 24, 2024 · 0 comments · Fixed by #41616
Labels
bug 🐛 Something doesn't work package: system Specific to @mui/system

Comments

@michael-land
Copy link
Contributor

michael-land commented Mar 24, 2024

Steps to reproduce

Link to live example: (required)

Steps:
1.
2.
3.

Current behavior

CleanShot 2024-03-23 at 21 51 12@2x

Expected behavior

CleanShot 2024-03-23 at 21 50 48@2x

Context

the resolved background color for ThemeProvider is rgb(50, 50, 50)
the resolved background color for Experimental_CssVarsProvider is #fff

https://github.com/mui/material-ui/blob/next/packages/mui-system/src/colorManipulator/colorManipulator.js#L341-L350

CleanShot 2024-03-23 at 21 56 13@2x
Looks like private_safeEmphasize created an infinity loop, is it suppose be

export function private_safeEmphasize(color, coefficient, warning) {
  try {
    //    return private_safeEmphasize(color, coefficient);
    return emphasize(color, coefficient);
  } catch (error) {
    if (warning && process.env.NODE_ENV !== 'production') {
      console.warn(warning);
    }
    return color;
  }
}

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: snackbar

@michael-land michael-land added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Mar 24, 2024
@ZeeshanTamboli ZeeshanTamboli added bug 🐛 Something doesn't work package: system Specific to @mui/system and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work package: system Specific to @mui/system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants