Common: ColorTheme: fix

This commit is contained in:
Viktor Fomin 2022-08-30 17:03:45 +03:00
parent 2d33893d50
commit 50659cdeb9

View File

@ -8,26 +8,23 @@ import Base from "@docspace/components/themes/base";
const getDefaultStyles = ({ $currentColorScheme, color, icon, theme }) =>
$currentColorScheme &&
css`
background: ${
color
background: ${color
? color
: theme.isBase
? $currentColorScheme.accentColor
: icon === "upload"
? theme.floatingButton.backgroundColor
: $currentColorScheme.accentColor} !important;
${StyledFloatingButton} {
background: ${color
? color
: theme.isBase
? $currentColorScheme.accentColor
: icon === "upload"
? theme.floatingButton.backgroundColor
: $currentColorScheme.accentColor
} !important;
${StyledFloatingButton} {
background: ${
color
? color
: theme.isBase
? $currentColorScheme.accentColor
: icon === "upload"
? theme.floatingButton.backgroundColor
: $currentColorScheme.accentColor
} !important;
: $currentColorScheme.accentColor} !important;
}
`;
StyledCircleWrap.defaultProps = { theme: Base };