Web: Components: SocialButton style fix

This commit is contained in:
Alexey Kostenko 2021-04-22 14:54:06 +03:00
parent a21d40ca87
commit 8519fe4d60
3 changed files with 22 additions and 13 deletions

View File

@ -27,7 +27,7 @@ const StyledFacebookButton = styled(ButtonWrapper).attrs((props) => ({
border: 1px solid #1877f2;
border-radius: 3px;
width: 100%;
cursor: pointer;
${(props) => !props.noHover && "cursor: pointer;"}
padding: 0;
outline: none;

View File

@ -61,20 +61,27 @@ const StyledSocialButton = styled(ButtonWrapper).attrs((props) => ({
box-shadow: ${(props) => props.theme.socialButton.boxShadow};
color: ${(props) => props.theme.socialButton.color};
:hover,
:active {
cursor: pointer;
box-shadow: ${(props) => props.theme.socialButton.hoverBoxShadow};
}
${(props) =>
!props.noHover &&
css`
:hover,
:active {
cursor: pointer;
box-shadow: ${(props) =>
props.theme.socialButton.hoverBoxShadow};
}
:hover {
background: ${(props) => props.theme.socialButton.hoverBackground};
}
:hover {
background: ${(props) =>
props.theme.socialButton.hoverBackground};
}
:active {
background: ${(props) => props.theme.socialButton.activeBackground};
border: none;
}
:active {
background: ${(props) =>
props.theme.socialButton.activeBackground};
border: none;
}
`}
`
: css`
box-shadow: none;

View File

@ -607,6 +607,7 @@ class UpdateUserForm extends React.Component {
<div>
{item.provider === "Facebook" ? (
<FacebookButton
noHover={true}
iconName={icon}
label={t(label)}
className="socialButton"
@ -614,6 +615,7 @@ class UpdateUserForm extends React.Component {
/>
) : (
<SocialButton
noHover={true}
iconName={icon}
label={t(label)}
className="socialButton"