mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
Updated status messages on the About page
This commit is contained in:
parent
3d6f0b923a
commit
1bccfa509a
@ -46,12 +46,15 @@ const Subheader = styled.div({
|
||||
const UpdateMessage = styled.div<{ status: 'positive' | 'negative' | string }>(
|
||||
({ status, theme }) => {
|
||||
if (status === 'positive') {
|
||||
return { background: theme.background.positive, color: theme.color.positive };
|
||||
return { background: theme.background.positive, color: theme.color.positiveText };
|
||||
}
|
||||
if (status === 'negative') {
|
||||
return { background: theme.background.negative, color: theme.color.negative };
|
||||
return { background: theme.background.negative, color: theme.color.negativeText };
|
||||
}
|
||||
return { background: '#EAF3FC', color: theme.color.darkest };
|
||||
return {
|
||||
background: theme.base === 'light' ? '#EAF3FC' : theme.color.darkest,
|
||||
color: theme.base === 'light' ? theme.color.darkest : theme.defaultText,
|
||||
};
|
||||
},
|
||||
|
||||
({ theme }) => ({
|
||||
|
Loading…
x
Reference in New Issue
Block a user