Skip to content

Commit

Permalink
Fix transparency over Paper elements in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzhang committed Dec 24, 2024
1 parent 5bb5ed3 commit c7929db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ProfilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function ProfilePage() {
fetchStaleGame({ gameId: gameIds[i] });
}
}
}, [gameVals, gameDataVals]);
}, [gameIds, gameVals, gameDataVals]);

if (redirect) {
return <Navigate push to={redirect} />;
Expand Down
4 changes: 4 additions & 0 deletions src/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export const darkTheme = createTheme({
},
},
},
MuiPaper: {
// https://mui.com/material-ui/migration/v5-component-changes/#change-dark-mode-background-opacity
styleOverrides: { root: { backgroundImage: "unset" } },
},
MuiTab: {
styleOverrides: {
root: {
Expand Down

0 comments on commit c7929db

Please sign in to comment.