Skip to content

Commit

Permalink
feat: Remove palette.grey[0] from Mui palette
Browse files Browse the repository at this point in the history
BREAKING CHANGE: You must use `palette.common.white` instead of `palette.grey[0]`
  • Loading branch information
JF-Cozy committed Nov 23, 2023
1 parent 8ae8e40 commit 9b8e53f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion react/MuiCozyTheme/makeOverrides.js
Expand Up @@ -581,7 +581,7 @@ export const makeOverrides = theme => ({
thumb: {
width: 16,
height: 16,
backgroundColor: theme.palette.grey[0]
backgroundColor: theme.palette.common.white
},
track: {
width: SWITCH_BAR_WIDTH,
Expand Down
1 change: 0 additions & 1 deletion react/MuiCozyTheme/makePalette.js
Expand Up @@ -88,7 +88,6 @@ export const makePalette = type => {
icon: getCssValue('iconTextColor')
},
grey: {
0: getCssValue('grey0'),
50: getCssValue('grey50'),
100: getCssValue('grey100'),
200: getCssValue('grey200'),
Expand Down

0 comments on commit 9b8e53f

Please sign in to comment.