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

data-mui-color-scheme not changing when toggling mode in NextJS 14 (App Router) #42202

Closed
austinlukaschewski opened this issue May 10, 2024 · 1 comment
Assignees
Labels

Comments

@austinlukaschewski
Copy link

austinlukaschewski commented May 10, 2024

Steps to reproduce

Link to live example: https://github.com/austinlukaschewski/materialui-test

Steps:

  1. Download repo & run pnpm i
  2. run pnpm dev
  3. Click button on home page and the mode will not change on screen.

Current behavior

Toggling mode does not change the data-mui-color-scheme. Local storage does change

Expected behavior

Toggling mode changes on screen

Context

Toggling mode.

Your environment

npx @mui/envinfo
  System:
    OS: macOS 14.4.1
  Binaries:
    Node: 21.7.3 - ~/.nvm/versions/node/v21.7.3/bin/node
    npm: 10.5.0 - ~/.nvm/versions/node/v21.7.3/bin/npm
    pnpm: 8.15.6 - ~/.nvm/versions/node/v21.7.3/bin/pnpm
  Browsers:
    Chrome: 124.0.6367.201
    Edge: Not Found
    Safari: 17.4.1
  npmPackages:
    @emotion/react: ^11.11.4 => 11.11.4 
    @emotion/styled: ^11.11.5 => 11.11.5 
    @mui/icons-material: ^5.15.17 => 5.15.17 
    @mui/material: ^5.15.0 => 5.15.0 
    @mui/material-nextjs: ^5.15.11 => 5.15.11 
    @mui/system: ^5.15.15 => 5.15.15 
    @mui/utils: ^5.15.14 => 5.15.14 
    @types/react: 18.3.1 => 18.3.1 
    react: 18.3.1 => 18.3.1 
    react-dom: 18.3.1 => 18.3.1 
    typescript: ~5.4.2 => 5.4.5 

Search keywords: data-mui-color-scheme NextJS 14

@austinlukaschewski austinlukaschewski added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 10, 2024
@austinlukaschewski austinlukaschewski changed the title data-mui-color-scheme not changing when toggling mode in NextJS 14 data-mui-color-scheme not changing when toggling mode in NextJS 14 (App Router) May 10, 2024
@github-actions github-actions bot removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 16, 2024
@austinlukaschewski
Copy link
Author

Mistake on my part. Disregard. Apologies for the trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants