style: update deactivated state styles in onboarding button (#997)

[952] style: update deactivated state styles in onboarding button
This commit is contained in:
Indrajeet Nikam
2023-07-31 02:37:58 +05:30
committed by GitHub
parent 20a1946b35
commit 86a2d67efd

View File

@ -15,7 +15,7 @@ const StyledButton = styled.button<Pick<Props, 'fullWidth' | 'variant'>>`
align-items: center;
background: ${({ theme, variant, disabled }) => {
if (disabled) {
return theme.background.tertiary;
return theme.background.secondary;
}
switch (variant) {
@ -31,9 +31,22 @@ const StyledButton = styled.button<Pick<Props, 'fullWidth' | 'variant'>>`
return theme.background.primary;
}
}};
border: 1px solid ${({ theme }) => theme.border.color.light};
border: 1px solid;
border-color: ${({ theme, disabled }) => {
if (disabled) {
return theme.background.transparent.lighter;
}
return theme.border.color.light;
}};
border-radius: ${({ theme }) => theme.border.radius.md};
box-shadow: ${({ theme }) => theme.boxShadow.light};
${({ theme, disabled }) => {
if (disabled) {
return '';
}
return `box-shadow: ${theme.boxShadow.light};`;
}}
color: ${({ theme, variant, disabled }) => {
if (disabled) {
return theme.font.color.light;