Web:Common:Fix mainButton styles.
This commit is contained in:
parent
e36ffa1f75
commit
fb453b3582
@ -1,11 +1,18 @@
|
|||||||
import styled, { css } from "styled-components";
|
import styled, { css } from "styled-components";
|
||||||
import { StyledMainButton } from "@docspace/components/main-button/styled-main-button";
|
import { StyledMainButton } from "@docspace/components/main-button/styled-main-button";
|
||||||
|
|
||||||
const getDefaultStyles = ({ currentColorScheme }) => css`
|
const getDefaultStyles = ({ currentColorScheme, isDisabled }) => css`
|
||||||
background: ${currentColorScheme.accentColor};
|
background: ${currentColorScheme.accentColor};
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: ${currentColorScheme.accentColor};
|
background: ${currentColorScheme.accentColor};
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background: ${currentColorScheme.accentColor};
|
||||||
|
opacity: ${!isDisabled && "0.6"};
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user