Skip to content

Commit

Permalink
feat(MuiPalette): Add theme.palette.background.contrastOpacity
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Nov 28, 2023
1 parent 2426933 commit a09926b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions react/MuiCozyTheme/makePalette.js
Expand Up @@ -124,6 +124,7 @@ export const makePalette = type => {
default: getCssValue('defaultBackgroundColor'),
paper: getCssValue('paperBackgroundColor'),
contrast: getCssValue('contrastBackgroundColor'),
contrastOpacity: type === 'dark' ? 0.24 : 0.12,
selected: '#F5FAFF' // deprecated, should be removed. Use action.selected instead
}
}
Expand Down

0 comments on commit a09926b

Please sign in to comment.