Web:Common:Add textColor in FloatingButton.

This commit is contained in:
Vlada Gazizova 2022-11-09 17:29:38 +03:00
parent 0bc03cd148
commit dbb724a936

View File

@ -2,6 +2,7 @@ import styled, { css } from "styled-components";
import {
StyledCircleWrap,
StyledFloatingButton,
IconBox,
} from "@docspace/common/components/FloatingButton/StyledFloatingButton";
import Base from "@docspace/components/themes/base";
@ -25,6 +26,14 @@ const getDefaultStyles = ({ $currentColorScheme, color, icon, theme }) =>
? theme.floatingButton.backgroundColor
: $currentColorScheme.accentColor} !important;
}
${IconBox} {
svg {
path {
fill: ${$currentColorScheme.textColor};
}
}
}
`;
StyledCircleWrap.defaultProps = { theme: Base };