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
I defined reusable Manage button in a react library with below code
In my application I try to use as <ManageButton onClick={() => console.log('Button clicked')}>Library Button</ManageButton>
The application themed via CSS variables and new theme created by overwriting default color palette. But in my app I see default primary color instead of overwritten color
Steps to reproduce
Link to live example: (required)
StackBlitz: https://stackblitz.com/edit/github-8oqtfo?file=src%2Fmain.tsx
CodeSandbox: https://codesandbox.io/p/github/pavankjadda/mui-css-variables/draft/quizzical-ritchie
Github: https://github.com/pavankjadda/mui-css-variables
Steps:
npm run dev
Current behavior
Color overriden in theme is not being applied
Expected behavior
Overridden color should apply as expected
Context
<ManageButton onClick={() => console.log('Button clicked')}>Library Button</ManageButton>
This works in react-scripts+MUI project not with vite+MUI
Your environment
npx @mui/envinfo
Search keywords: vite
The text was updated successfully, but these errors were encountered: