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

button css wrong when i use css varibles #43541

Closed
hhniao opened this issue Aug 31, 2024 · 1 comment
Closed

button css wrong when i use css varibles #43541

hhniao opened this issue Aug 31, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@hhniao
Copy link

hhniao commented Aug 31, 2024

Steps to reproduce

the outlined button hover style wrong
https://codesandbox.io/p/sandbox/mui-66yztk

how to do before you fixed it?

const theme = createTheme({
  cssVariables: {
    colorSchemeSelector: ".demo-disable-transition-%s",
  },
  palette: {
    mode: "light",
    primary: {
      light: "var(--primary-light)",
      main: "var(--primary)",
      dark: "var(--primary-hover)",
      contrastText: "var(--primary-foreground)",

      // light: "#338cf5",
      // main: "#0070f3",
      // dark: "#004eaa",
      // contrastText: "#ffffff",
    },
  },
  colorSchemes: { dark: true },
});

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

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

Search keywords: css varibles button hover

@hhniao hhniao added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Aug 31, 2024
@oliviertassinari
Copy link
Member

Duplicate of #43540

@oliviertassinari oliviertassinari marked this as a duplicate of #43540 Aug 31, 2024
@github-actions github-actions bot added duplicate This issue or pull request already exists and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 31, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants
@oliviertassinari @hhniao and others