Web:Common:Fix theme.

This commit is contained in:
Vlada Gazizova 2022-11-10 17:29:55 +03:00
parent 564ec4457f
commit ddc067f3f0
3 changed files with 7 additions and 18 deletions

View File

@ -66,6 +66,7 @@ const getDefaultStyles = ({
primary &&
$currentColorScheme.textColor};
}
background-color: ${primary && $currentColorScheme.buttonsMain};
}
${!isDisabled &&

View File

@ -6,15 +6,15 @@ const getDefaultStyles = ({ $currentColorScheme, isSelected, theme }) =>
$currentColorScheme &&
isSelected &&
css`
background: ${theme.isBase && $currentColorScheme.accentColor};
border-color: ${theme.isBase && $currentColorScheme.accentColor};
background: ${$currentColorScheme.accentColor};
border-color: ${$currentColorScheme.accentColor};
p {
color: ${$currentColorScheme.id > 7 && $currentColorScheme.textColor};
}
&:hover {
background: ${theme.isBase && $currentColorScheme.accentColor};
border-color: ${theme.isBase && $currentColorScheme.accentColor};
background: ${$currentColorScheme.accentColor};
border-color: ${$currentColorScheme.accentColor};
}
`;

View File

@ -16,22 +16,10 @@ const getDefaultStyles = ({
}) =>
$currentColorScheme &&
css`
background: ${color
? color
: theme.isBase
? $currentColorScheme.accentColor
: icon === "upload"
? theme.floatingButton.backgroundColor
: $currentColorScheme.accentColor} !important;
background: ${color ? color : $currentColorScheme.accentColor} !important;
${StyledFloatingButton} {
background: ${color
? color
: theme.isBase
? $currentColorScheme.accentColor
: icon === "upload"
? theme.floatingButton.backgroundColor
: $currentColorScheme.accentColor} !important;
background: ${color ? color : $currentColorScheme.accentColor} !important;
}
${IconBox} {