Changing theme does not change background color when using CSS variables
Open
Nobody has claimed this yet.
docs
scope: all components
support: question
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Steps to reproduce 🕹
Live example links
https://codesandbox.io/s/create-react-app-with-typescript-forked-46llm7?file=/src/index.tsx
https://nikhil1920.github.io/next-js-mui-pwa-starter/
Current behavior 😯
Background color is not changing based on theme
Expected behavior 🤔
Background color should change based on current theme
Context 🔦
No response
Your environment 🌎
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior in the linked CodeSandbox and Next.js example, focusing on how the CSS-variable theme controls the background color. Confirm the expected behavior by switching themes and verifying that the background changes in both examples; the issue does not name a source file or test to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100