Skip to content

The open alternative to Salesforce, designed for AI.

Update add account button style (#4481)

bosiraphaelf6d27ce19c05
diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsListCard.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsListCard.tsx
index 0d274827604..c3c8a056075 100644
--- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsListCard.tsx
+++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsListCard.tsx
@@ -8,10 +8,9 @@ import { SettingsAccountsListEmptyStateCard } from '@/settings/accounts/componen
import { SettingsAccountsListSkeletonCard } from '@/settings/accounts/components/SettingsAccountsListSkeletonCard';
import { getSettingsPagePath } from '@/settings/utils/getSettingsPagePath';
import { SettingsPath } from '@/types/SettingsPath';
-import { IconAt, IconPlus } from '@/ui/display/icon';
+import { IconPlus } from '@/ui/display/icon';
import { IconGoogle } from '@/ui/display/icon/components/IconGoogle';
import { IconComponent } from '@/ui/display/icon/types/IconComponent';
-import { LightIconButton } from '@/ui/input/button/components/LightIconButton';
import { Card } from '@/ui/layout/card/components/Card';
import { CardFooter } from '@/ui/layout/card/components/CardFooter';
@@ -19,16 +18,28 @@ import { SettingsAccountRow } from './SettingsAccountsRow';
const StyledFooter = styled(CardFooter)`
align-items: center;
- color: ${({ theme }) => theme.font.color.tertiary};
display: flex;
- gap: ${({ theme }) => theme.spacing(2)};
- height: ${({ theme }) => theme.spacing(6)};
- padding: ${({ theme }) => theme.spacing(2)};
- padding-left: ${({ theme }) => theme.spacing(4)};
+ padding: ${({ theme }) => theme.spacing(1)};
`;
-const StyledIconButton = styled(LightIconButton)`
- margin-left: auto;
+const StyledButton = styled.button`
+ align-items: center;
+ background: ${({ theme }) => theme.background.primary};
+ border: none;
+ border-radius: ${({ theme }) => theme.border.radius.sm};
+ color: ${({ theme }) => theme.font.color.secondary};
+ gap: ${({ theme }) => theme.spacing(2)};
+ padding: 0 ${({ theme }) => theme.spacing(1)};
+ padding-left: ${({ theme }) => theme.spacing(2)};
+ cursor: pointer;
+ display: flex;
+ flex: 1 0 0;
+ height: ${({ theme }) => theme.spacing(8)};
+ width: 100%;
+
+ &:hover {
+ background: ${({ theme }) => theme.background.transparent.light};
+ }
`;
type SettingsAccountsListCardProps<
@@ -73,15 +84,14 @@ export const SettingsAccountsListCard = <
))}
{hasFooter && (
<StyledFooter>
- <IconAt size={theme.icon.size.sm} />
- Add account
- <StyledIconButton
- Icon={IconPlus}
- accent="tertiary"
+ <StyledButton
onClick={() =>
navigate(getSettingsPagePath(SettingsPath.NewAccount))
}
- />
+ >
+ <IconPlus size={theme.icon.size.md} />
+ Add account
+ </StyledButton>
</StyledFooter>
)}
</Card>
diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsRow.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsRow.tsx
index 2c2660ddd85..8029242ba0d 100644
--- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsRow.tsx
+++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsRow.tsx
@@ -14,7 +14,7 @@ const StyledRow = styled(CardContent)`
font-weight: ${({ theme }) => theme.font.weight.medium};
gap: ${({ theme }) => theme.spacing(2)};
padding: ${({ theme }) => theme.spacing(2)};
- padding-left: ${({ theme }) => theme.spacing(4)};
+ padding-left: ${({ theme }) => theme.spacing(3)};
`;
const StyledAccountHandle = styled.span`