mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02:00
chore: deprecate envAccordion
colors; update non-legacy components (#9378)
Deprecates the `envAccordion` colors (`expanded` and `disabled`) and updates the components that I do not expect to be deprecated as part of the strategy facelift project to use `elevation1` instead. The difference is very slight. envAccordion.expanded:  Elevation 1: 
This commit is contained in:
parent
63d4b8b0e4
commit
d5d172647c
@ -66,7 +66,7 @@ const StyledCardBodyContent = styled(Box)(({ theme }) => ({
|
||||
const StyledCardFooter = styled(Box)(({ theme }) => ({
|
||||
padding: theme.spacing(0, 2),
|
||||
display: 'flex',
|
||||
background: theme.palette.envAccordion.expanded,
|
||||
background: theme.palette.background.elevation1,
|
||||
boxShadow: theme.boxShadows.accordionFooter,
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
|
@ -19,7 +19,7 @@ const StyledFooter = styled(Box)<{ disabled: boolean }>(
|
||||
display: 'flex',
|
||||
background: disabled
|
||||
? theme.palette.background.paper
|
||||
: theme.palette.envAccordion.expanded,
|
||||
: theme.palette.background.elevation1,
|
||||
boxShadow: theme.boxShadows.accordionFooter,
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
|
@ -253,6 +253,8 @@ const theme = {
|
||||
|
||||
/**
|
||||
* For Environment Accordion.
|
||||
* @deprecated Use `elevation1` for `disabled` and `elevation2` for `expanded` instead.
|
||||
* remove with the flagOverviewRedesign flag
|
||||
*/
|
||||
envAccordion: {
|
||||
disabled: colors.grey[100],
|
||||
|
Loading…
Reference in New Issue
Block a user