Web:Components:MainButton: add dark theme support

This commit is contained in:
Timofey Boyko 2021-12-10 19:12:02 +08:00
parent 46f58ef998
commit 38212e81bc
3 changed files with 8 additions and 6 deletions

View File

@ -128,7 +128,7 @@ const StyledSecondaryButton = styled(StyledMainButton)`
height: 16px;
min-height: 16px;
path {
fill: #fff;
fill: ${(props) => props.theme.mainButton.svg.fill};
}
}
`;

View File

@ -186,6 +186,7 @@ const Base = {
svg: {
margin: "auto",
height: "100%",
fill: "#ffffff",
},
secondaryButton: {

View File

@ -168,17 +168,17 @@ const Dark = {
},
mainButton: {
backgroundColor: orangeMain,
disableBackgroundColor: orangeDisabled,
hoverBackgroundColor: orangeHover,
clickBackgroundColor: orangePressed,
backgroundColor: "#F59931",
disableBackgroundColor: "#4C3B2D",
hoverBackgroundColor: "#FFAD3D",
clickBackgroundColor: "#E6842E",
padding: "5px 10px",
borderRadius: "3px",
lineHeight: "22px",
fontSize: "15px",
fontWeight: 700,
textColor: "#FFF",
textColor: "#333333",
cornerRoundsTopRight: "0",
cornerRoundsBottomRight: "0",
@ -186,6 +186,7 @@ const Dark = {
svg: {
margin: "auto",
height: "100%",
fill: "#333333",
},
secondaryButton: {