Web:Common:Fix mainButton styles.

This commit is contained in:
Vlada Gazizova 2022-08-16 09:21:12 +03:00
parent e36ffa1f75
commit fb453b3582

View File

@ -1,11 +1,18 @@
import styled, { css } from "styled-components";
import { StyledMainButton } from "@docspace/components/main-button/styled-main-button";
const getDefaultStyles = ({ currentColorScheme }) => css`
const getDefaultStyles = ({ currentColorScheme, isDisabled }) => css`
background: ${currentColorScheme.accentColor};
&:hover {
background: ${currentColorScheme.accentColor};
cursor: pointer;
}
&:active {
background: ${currentColorScheme.accentColor};
opacity: ${!isDisabled && "0.6"};
cursor: pointer;
}
`;