Declare closeButtonColor as optional and use inherit as fallback
Signed-off-by: hennnnes <hroemmer@googlemail.com>
This commit is contained in:
@@ -64,17 +64,17 @@ const useStyles = makeStyles(
|
||||
width: '100%',
|
||||
maxWidth: 'inherit',
|
||||
flexWrap: 'nowrap',
|
||||
color: theme.palette.banner.text,
|
||||
},
|
||||
message: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
color: theme.palette.banner.text,
|
||||
'& a': {
|
||||
color: theme.palette.banner.link,
|
||||
},
|
||||
},
|
||||
button: {
|
||||
color: theme.palette.banner.closeButtonColor,
|
||||
color: theme.palette.banner.closeButtonColor ?? 'inherit',
|
||||
},
|
||||
info: {
|
||||
backgroundColor: theme.palette.banner.info,
|
||||
|
||||
@@ -70,7 +70,7 @@ export type BackstagePaletteAdditions = {
|
||||
error: string;
|
||||
text: string;
|
||||
link: string;
|
||||
closeButtonColor: string;
|
||||
closeButtonColor?: string;
|
||||
warning?: string;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -85,7 +85,7 @@ export type BackstagePaletteAdditions = {
|
||||
error: string;
|
||||
text: string;
|
||||
link: string;
|
||||
closeButtonColor: string;
|
||||
closeButtonColor?: string;
|
||||
warning?: string;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user