Web:Components:Selector-Add-Button Fixed the color theme

This commit is contained in:
Akmal Isomadinov 2022-12-07 16:13:36 +05:00
parent 510adbf43e
commit d8fc76e789
3 changed files with 29 additions and 8 deletions

View File

@ -18,27 +18,38 @@ const StyledButton = styled.div`
${(props) =>
!props.isDisabled &&
css`
fill: ${props.theme.selectorAddButton.color};
fill: ${props.theme.selectorAddButton.iconColor};
`}
}
}
&:hover {
background: ${(props) =>
!props.isDisabled && props.theme.selectorAddButton.hoverBackground};
svg {
path {
${(props) =>
!props.isDisabled &&
css`
fill: ${props.theme.selectorAddButton.hoverColor};
fill: ${props.theme.selectorAddButton.iconColorHover};
`}
}
}
}
&:active {
${(props) =>
!props.isDisabled &&
`background-color: ${props.theme.selectorAddButton.activeBackground};`}
background: ${(props) =>
!props.isDisabled && props.theme.selectorAddButton.activeBackground};
svg {
path {
${(props) =>
!props.isDisabled &&
css`
fill: ${props.theme.selectorAddButton.iconColorActive};
`}
}
}
}
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);

View File

@ -383,7 +383,12 @@ const Base = {
},
selectorAddButton: {
background: grayLightMid,
activeBackground: grayLightMid,
hoverBackground: lightGrayishStrongBlue,
activeBackground: grayMid,
iconColor: grayMain,
iconColorHover: grayMain,
iconColorActive: grayMain,
border: `none`,
boxSizing: "border-box",

View File

@ -376,8 +376,13 @@ const Dark = {
iconButton: { color: "#858585", hoverColor: grayMaxLight },
selectorAddButton: {
background: "#292929",
activeBackground: "#292929",
background: "#242424",
hoverBackground: "#282828",
activeBackground: "#242424",
iconColor: "#858585",
iconColorHover: "#FFFFFF",
iconColorActive: "#CCCCCC",
border: `none`,
boxSizing: "border-box",