Declare closeButtonColor as optional and use inherit as fallback

Signed-off-by: hennnnes <hroemmer@googlemail.com>
This commit is contained in:
hennnnes
2023-04-13 11:26:05 +02:00
parent 303c2c3ce5
commit dede4d1cc7
3 changed files with 4 additions and 4 deletions
@@ -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,
+1 -1
View File
@@ -70,7 +70,7 @@ export type BackstagePaletteAdditions = {
error: string;
text: string;
link: string;
closeButtonColor: string;
closeButtonColor?: string;
warning?: string;
};
};
+1 -1
View File
@@ -85,7 +85,7 @@ export type BackstagePaletteAdditions = {
error: string;
text: string;
link: string;
closeButtonColor: string;
closeButtonColor?: string;
warning?: string;
};
};