Web:Common:Fix ToggleButtonTheme.

This commit is contained in:
Vlada Gazizova 2022-08-16 13:42:31 +03:00
parent eab910e973
commit bde4a1f019

View File

@ -4,7 +4,9 @@ import {
ToggleButtonContainer,
} from "@docspace/components/toggle-button/styled-toggle-button";
const getDefaultStyles = ({ currentColorScheme, isDisabled, isChecked }) => css`
const getDefaultStyles = ({ currentColorScheme, isDisabled, isChecked }) =>
currentColorScheme &&
css`
${ToggleButtonContainer} {
svg {
rect {
@ -18,6 +20,6 @@ const getDefaultStyles = ({ currentColorScheme, isDisabled, isChecked }) => css`
}
}
}
`;
`;
export default styled(Container)(getDefaultStyles);