Merge pull request #929 from ONLYOFFICE/bugfix/fixed-selector-add-button-styles

Web: Files: fixed selector-add-button theme styles
This commit is contained in:
Nikita Gopienko 2022-10-19 12:34:46 +03:00 committed by GitHub
commit 7a2aff8fa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 16 deletions

View File

@ -1,4 +1,4 @@
import styled from "styled-components";
import styled, { css } from "styled-components";
import Base from "../themes/base";
const StyledButton = styled.div`
@ -13,21 +13,25 @@ const StyledButton = styled.div`
cursor: ${(props) => (!props.isDisabled ? "pointer" : "default")};
path {
${(props) =>
!props.isDisabled &&
`
fill: ${props.theme.selectorAddButton.color} !important;
`}
}
&:hover {
svg {
path {
${(props) =>
!props.isDisabled &&
`
fill: ${props.theme.selectorAddButton.hoverColor} !important;
`}
css`
fill: ${props.theme.selectorAddButton.color};
`}
}
}
&:hover {
svg {
path {
${(props) =>
!props.isDisabled &&
css`
fill: ${props.theme.selectorAddButton.hoverColor};
`}
}
}
}

View File

@ -389,7 +389,7 @@ const Base = {
height: " 32px",
width: "32px",
padding: "10px",
color: black,
color: grayMain,
hoverColor: black,
},

View File

@ -386,9 +386,9 @@ const Dark = {
borderRadius: "3px",
height: " 32px",
width: "32px",
padding: "9px",
padding: "10px",
color: "#858585",
hoverColor: "#858585",
hoverColor: grayMaxLight,
},
saveCancelButtons: {