Skip to content

The open alternative to Salesforce, designed for AI.

Remove the no-op rounded prop from Card.Root (#28263)

Raphaël Bosi10a35288ef83
diff --git a/packages/twenty-docs/snippets/ui/generated/surfaces/card.mdx b/packages/twenty-docs/snippets/ui/generated/surfaces/card.mdx
index c1d412cd7c3..0f7f5697b05 100644
--- a/packages/twenty-docs/snippets/ui/generated/surfaces/card.mdx
+++ b/packages/twenty-docs/snippets/ui/generated/surfaces/card.mdx
@@ -37,10 +37,6 @@
Element or render callback composed through Base UI useRender. Supply native button or link attributes on the rendered owner.
</ParamField>
-<ParamField body="Root.rounded" type="boolean">
- Cards already use the same rounded corners when omitted.
-</ParamField>
-
<ParamField body="Root.style" type="CSSProperties">
Native styles applied to the rendered part.
</ParamField>
diff --git a/packages/twenty-docs/ui/primitives/surfaces/card.mdx b/packages/twenty-docs/ui/primitives/surfaces/card.mdx
index 86c6b666364..3ef96d57619 100644
--- a/packages/twenty-docs/ui/primitives/surfaces/card.mdx
+++ b/packages/twenty-docs/ui/primitives/surfaces/card.mdx
@@ -62,7 +62,7 @@ Each part renders a `div` by default and accepts native div attributes, event ha
## Appearance and dividers
-`Card.Root` has a transparent background by default. `fullWidth` fills its container, and `backgroundColor` changes the outer background. Child sections have their own backgrounds. `rounded` currently uses the same corner radius as the default card.
+`Card.Root` has a transparent background by default. `fullWidth` fills its container, and `backgroundColor` changes the outer background. Child sections have their own backgrounds.
`Card.Header` has a primary background, padding, and a bottom border. `Card.Content` has a secondary background and padding; its optional `divider` adds a bottom border. `Card.Footer` has a primary background, padding, and a top border unless `divider={false}`. Avoid adding two borders at the same section boundary.
diff --git a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-card-composition.front-component.tsx b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-card-composition.front-component.tsx
index 7750d1cb0db..c40b50f59f4 100644
--- a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-card-composition.front-component.tsx
+++ b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-card-composition.front-component.tsx
@@ -16,7 +16,6 @@ const ROOT_PROPS = {
id: 'display-card',
title: 'Display card',
fullWidth: true,
- rounded: true,
backgroundColor: 'rgb(245, 246, 247)',
} satisfies CardRootProps;
@@ -56,7 +55,6 @@ const CardComposition = () => {
id={ROOT_PROPS.id}
title={ROOT_PROPS.title}
fullWidth={ROOT_PROPS.fullWidth}
- rounded={ROOT_PROPS.rounded}
backgroundColor={ROOT_PROPS.backgroundColor}
ref={rootRef}
data-card-part="root"
diff --git a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/cardCompositionTest.ts b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/cardCompositionTest.ts
index f58c1f3d3b5..ad188540ad7 100644
--- a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/cardCompositionTest.ts
+++ b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/utils/cardCompositionTest.ts
@@ -18,7 +18,6 @@ export const cardCompositionTest: TwentyUiGalleryPlayFunction = async ({
expect(displayCard.tagName).toBe('DIV');
expect(displayCard).toHaveAttribute('id', 'display-card');
expect(displayCard).toHaveAttribute('data-full-width');
- expect(displayCard).toHaveAttribute('data-rounded');
await waitFor(() =>
expect(getComputedStyle(displayCard).backgroundColor).toBe(
'rgb(245, 246, 247)',
diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelDetails.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelDetails.tsx
index 2f3f4fef00d..4b1111a4ebc 100644
--- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelDetails.tsx
+++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelDetails.tsx
@@ -68,7 +68,7 @@ export const SettingsAccountsCalendarChannelDetails = ({
title={t`Contact auto-creation`}
description={t`Automatically create contacts for people you've participated in an event with.`}
/>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconUserPlus}
title={t`Auto-creation`}
@@ -87,7 +87,7 @@ export const SettingsAccountsCalendarChannelDetails = ({
title={t`Options`}
description={t`Configure what events should get synced`}
/>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconEyeOff}
title={t`Exclude private events`}
diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx
index cdadadcf890..7f432cee727 100644
--- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx
+++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx
@@ -129,7 +129,7 @@ export const SettingsAccountsMessageChannelDetails = ({
title={t`Options`}
description={t`Configure what emails should get synced`}
/>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconUsers}
title={t`Exclude group emails`}
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/ai/components/SettingsAdminAI.tsx b/packages/twenty-front/src/modules/settings/admin-panel/ai/components/SettingsAdminAI.tsx
index 124a5b5c974..584f208c6df 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/ai/components/SettingsAdminAI.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/ai/components/SettingsAdminAI.tsx
@@ -203,7 +203,7 @@ export const SettingsAdminAI = () => {
description={t`The model behind each mode for every workspace. Workspaces can pin their own.`}
/>
- <Card.Root rounded>
+ <Card.Root>
<StyledSettingsSelectGroup controlWidth={260}>
{AI_MODEL_TIERS.map((tier, index) => (
<SettingsOptionCardContentSelect
@@ -278,7 +278,7 @@ export const SettingsAdminAI = () => {
))}
</Table>
) : (
- <Card.Root rounded>
+ <Card.Root>
<TableRow gridTemplateColumns="1fr">
<TableCell
color={themeCssVariables.font.color.tertiary}
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/ai/components/SettingsAdminAiProviderListCard.tsx b/packages/twenty-front/src/modules/settings/admin-panel/ai/components/SettingsAdminAiProviderListCard.tsx
index d53de25c72d..224a60bd95d 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/ai/components/SettingsAdminAiProviderListCard.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/ai/components/SettingsAdminAiProviderListCard.tsx
@@ -65,7 +65,6 @@ export const SettingsAdminAiProviderListCard = ({
return (
<SettingsListCard
items={providers}
- rounded
RowIconColor={themeCssVariables.font.color.primary}
RowIconFn={(provider) => getProviderIcon(provider.name ?? provider.id)}
getItemLabel={(provider) => provider.label ?? provider.id}
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminChatThreadMessageList.tsx b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminChatThreadMessageList.tsx
index edf6392b74e..26636b31faa 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminChatThreadMessageList.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminChatThreadMessageList.tsx
@@ -31,7 +31,7 @@ export const SettingsAdminChatThreadMessageList = ({
if (!isNonEmptyArray(visibleMessages)) {
return (
- <Card.Root rounded>
+ <Card.Root>
<TableRow gridTemplateColumns="1fr">
<TableCell
color={themeCssVariables.font.color.tertiary}
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminVersionContainer.tsx b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminVersionContainer.tsx
index 108ee0c2d46..8435360f74a 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminVersionContainer.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminVersionContainer.tsx
@@ -38,7 +38,5 @@ export const SettingsAdminVersionContainer = () => {
},
];
- return (
- <SettingsTableCard rounded items={versionItems} gridAutoColumns="3fr 8fr" />
- );
+ return <SettingsTableCard items={versionItems} gridAutoColumns="3fr 8fr" />;
};
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminWorkspaceBillingContent.tsx b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminWorkspaceBillingContent.tsx
index 50a6f13fe50..c94a33191e9 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminWorkspaceBillingContent.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminWorkspaceBillingContent.tsx
@@ -358,11 +358,7 @@ export const SettingsAdminWorkspaceBillingContent = ({
title={t`Customer`}
description={t`Stripe customer linked to this workspace`}
/>
- <SettingsTableCard
- rounded
- items={customerItems}
- gridAutoColumns="3fr 8fr"
- />
+ <SettingsTableCard items={customerItems} gridAutoColumns="3fr 8fr" />
</Section.Root>
<Section.Root>
@@ -375,11 +371,7 @@ export const SettingsAdminWorkspaceBillingContent = ({
}
/>
{isDefined(usage) && (
- <SettingsTableCard
- rounded
- items={usageItems}
- gridAutoColumns="3fr 8fr"
- />
+ <SettingsTableCard items={usageItems} gridAutoColumns="3fr 8fr" />
)}
</Section.Root>
@@ -394,7 +386,6 @@ export const SettingsAdminWorkspaceBillingContent = ({
/>
{subscription && (
<SettingsTableCard
- rounded
items={subscriptionItems}
gridAutoColumns="3fr 8fr"
/>
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthAccountSyncCountersTable.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthAccountSyncCountersTable.tsx
index b91380b00f7..4f1c4cb13f4 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthAccountSyncCountersTable.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthAccountSyncCountersTable.tsx
@@ -48,7 +48,6 @@ export const SettingsAdminHealthAccountSyncCountersTable = ({
<Section.Header title={title} description={description} />
<StyledSettingsTableCard
items={items}
- rounded
gridAutoColumns="1fr 1fr"
labelAlign="left"
valueAlign="right"
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthStatusListCard.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthStatusListCard.tsx
index 38b76801e07..1f05a94db09 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthStatusListCard.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthStatusListCard.tsx
@@ -37,7 +37,6 @@ export const SettingsAdminHealthStatusListCard = ({
return (
<SettingsListCard
items={services}
- rounded={true}
RowIconFn={(row) => HealthStatusIcons[row.id]}
RowIconColor={theme.font.color.tertiary}
getItemLabel={(service) => service.label}
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminUpgradeStatusListCard.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminUpgradeStatusListCard.tsx
index c145e3e559d..5ce45aef180 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminUpgradeStatusListCard.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminUpgradeStatusListCard.tsx
@@ -82,7 +82,6 @@ export const SettingsAdminUpgradeStatusListCard = ({
return (
<SettingsListCard<UpgradeStatusRow>
items={items}
- rounded={true}
RowIconFn={(item) => ROW_ICON_BY_KIND[item.kind]}
getItemLabel={(item) => item.label}
RowRightComponent={SettingsAdminUpgradeStatusRightContainer}
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminWorkerMetricsGraph.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminWorkerMetricsGraph.tsx
index 80c6addbe1a..fa4fc2eb17b 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminWorkerMetricsGraph.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminWorkerMetricsGraph.tsx
@@ -200,7 +200,6 @@ export const SettingsAdminWorkerMetricsGraph = ({
</StyledGraphContainer>
{isDefined(metricsDetails) && (
<StyledSettingsTableCard
- rounded
items={Object.entries(metricsDetails)
.filter(([key]) => key !== '__typename')
.map(([key, value]) => ({
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminWorkspacesByHealthAccordion.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminWorkspacesByHealthAccordion.tsx
index cf5bdb2bff4..297ca43275f 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminWorkspacesByHealthAccordion.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminWorkspacesByHealthAccordion.tsx
@@ -54,14 +54,14 @@ export const SettingsAdminWorkspacesByHealthAccordion = ({
if (workspaces.length === 0) {
return (
- <Card.Root rounded={true}>
+ <Card.Root>
<StyledAccordionHeader>{emptyLabel}</StyledAccordionHeader>
</Card.Root>
);
}
return (
- <Card.Root rounded={true}>
+ <Card.Root>
<Collapsible.Root open={isExpanded} onOpenChange={setIsExpanded}>
<StyledAccordionHeader render={<Collapsible.Trigger />}>
<span>{filledLabel}</span>
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/maintenance-mode/components/SettingsAdminMaintenanceMode.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/maintenance-mode/components/SettingsAdminMaintenanceMode.tsx
index c05a3ba6533..f3e089218a5 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/maintenance-mode/components/SettingsAdminMaintenanceMode.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/maintenance-mode/components/SettingsAdminMaintenanceMode.tsx
@@ -195,7 +195,7 @@ export const SettingsAdminMaintenanceMode = () => {
title={t`Maintenance`}
description={t`Schedule a maintenance window and notify all users`}
/>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconTool}
title={t`Maintenance mode`}
diff --git a/packages/twenty-front/src/modules/settings/ai/components/SettingsAiModelHoverCard.tsx b/packages/twenty-front/src/modules/settings/ai/components/SettingsAiModelHoverCard.tsx
index 5a8f7a0c5f2..89a6dda2a49 100644
--- a/packages/twenty-front/src/modules/settings/ai/components/SettingsAiModelHoverCard.tsx
+++ b/packages/twenty-front/src/modules/settings/ai/components/SettingsAiModelHoverCard.tsx
@@ -173,7 +173,6 @@ export const SettingsAiModelHoverCard = ({
return (
<StyledHoverCardWrapper>
<SettingsTableCard
- rounded
items={items}
gridAutoColumns={`${themeCssVariables.spacing[30]} 1fr`}
/>
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesMessageChannelDetails.tsx b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesMessageChannelDetails.tsx
index c6e754aaaf2..1ca52e06587 100644
--- a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesMessageChannelDetails.tsx
+++ b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesMessageChannelDetails.tsx
@@ -129,7 +129,7 @@ export const SettingsAppPreferencesMessageChannelDetails = ({
title={t`Options`}
description={t`Configure what emails should get synced`}
/>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconUsers}
title={t`Exclude group emails`}
diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationOverviewCard.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationOverviewCard.tsx
index 4b38d2e8809..35712cd80b1 100644
--- a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationOverviewCard.tsx
+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationOverviewCard.tsx
@@ -91,7 +91,6 @@ export const SettingsApplicationOverviewCard = ({
}: SettingsApplicationOverviewCardProps) => {
return (
<StyledCard
- rounded
fullWidth
backgroundColor={themeCssVariables.background.secondary}
>
diff --git a/packages/twenty-front/src/modules/settings/components/SettingsCard.tsx b/packages/twenty-front/src/modules/settings/components/SettingsCard.tsx
index 3c8097526e3..6dd39388368 100644
--- a/packages/twenty-front/src/modules/settings/components/SettingsCard.tsx
+++ b/packages/twenty-front/src/modules/settings/components/SettingsCard.tsx
@@ -124,7 +124,7 @@ export const SettingsCard = ({
return (
<StyledCardWrapper disabled={disabled} className={className}>
- <Card.Root rounded={true} fullWidth>
+ <Card.Root fullWidth>
<StyledCardContent render={getContentOwner()}>
<StyledHeader>
<StyledIconContainer disabled={disabled} iconColor={iconColor}>
diff --git a/packages/twenty-front/src/modules/settings/components/SettingsDiscoveryHeroCard.tsx b/packages/twenty-front/src/modules/settings/components/SettingsDiscoveryHeroCard.tsx
index 008bd8406a8..0d30c1e3d9d 100644
--- a/packages/twenty-front/src/modules/settings/components/SettingsDiscoveryHeroCard.tsx
+++ b/packages/twenty-front/src/modules/settings/components/SettingsDiscoveryHeroCard.tsx
@@ -72,7 +72,7 @@ export const SettingsDiscoveryHeroCard = ({
return (
<>
- <Card.Root rounded>
+ <Card.Root>
<StyledCoverContainer coverHeight={coverHeight}>
<StyledImage src={src} alt="" aria-hidden />
{shouldDisplayVideo && (
diff --git a/packages/twenty-front/src/modules/settings/components/SettingsEnterpriseFeatureGateCard.tsx b/packages/twenty-front/src/modules/settings/components/SettingsEnterpriseFeatureGateCard.tsx
index 930b443324f..aefa42627bf 100644
--- a/packages/twenty-front/src/modules/settings/components/SettingsEnterpriseFeatureGateCard.tsx
+++ b/packages/twenty-front/src/modules/settings/components/SettingsEnterpriseFeatureGateCard.tsx
@@ -29,7 +29,7 @@ export const SettingsEnterpriseFeatureGateCard = ({
: SettingsPath.AdminPanelOrganization;
return (
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentButton
Icon={IconLock}
title={title}
diff --git a/packages/twenty-front/src/modules/settings/components/SettingsListCard.tsx b/packages/twenty-front/src/modules/settings/components/SettingsListCard.tsx
index 19ae0dd4c6e..162511c1d97 100644
--- a/packages/twenty-front/src/modules/settings/components/SettingsListCard.tsx
+++ b/packages/twenty-front/src/modules/settings/components/SettingsListCard.tsx
@@ -48,7 +48,6 @@ type SettingsListCardProps<ListItem extends { id: string }> = {
footerButtonLabel?: string;
onFooterButtonClick?: () => void;
to?: (item: ListItem) => string;
- rounded?: boolean;
};
export const SettingsListCard = <
@@ -69,14 +68,13 @@ export const SettingsListCard = <
onFooterButtonClick,
footerButtonLabel,
to,
- rounded,
}: SettingsListCardProps<ListItem>) => {
const theme = useTheme();
if (isLoading === true) return <SettingsListSkeletonCard />;
return (
- <Card.Root rounded={rounded}>
+ <Card.Root>
{items.map((item, index) => (
<SettingsListItemCardContent
key={item.id}
diff --git a/packages/twenty-front/src/modules/settings/components/SettingsRadioSettingsCard.tsx b/packages/twenty-front/src/modules/settings/components/SettingsRadioSettingsCard.tsx
index b28b393ad21..5562e7cd6d5 100644
--- a/packages/twenty-front/src/modules/settings/components/SettingsRadioSettingsCard.tsx
+++ b/packages/twenty-front/src/modules/settings/components/SettingsRadioSettingsCard.tsx
@@ -90,7 +90,7 @@ export const SettingsRadioSettingsCard = <
}
}}
>
- <Card.Root fullWidth rounded>
+ <Card.Root fullWidth>
{options.map((option, index) => {
const isSelected = value === option.value;
diff --git a/packages/twenty-front/src/modules/settings/components/SettingsTableCard.tsx b/packages/twenty-front/src/modules/settings/components/SettingsTableCard.tsx
index fa576aef4cd..8780a8384f6 100644
--- a/packages/twenty-front/src/modules/settings/components/SettingsTableCard.tsx
+++ b/packages/twenty-front/src/modules/settings/components/SettingsTableCard.tsx
@@ -16,7 +16,6 @@ export type TableItem = {
type SettingsTableCardProps = {
items: TableItem[];
- rounded?: boolean;
gridAutoColumns?: string;
labelAlign?: 'left' | 'center' | 'right';
valueAlign?: 'left' | 'center' | 'right';
@@ -25,7 +24,6 @@ type SettingsTableCardProps = {
export const SettingsTableCard = ({
items,
- rounded = false,
gridAutoColumns,
labelAlign = 'left',
valueAlign = 'left',
@@ -34,7 +32,6 @@ export const SettingsTableCard = ({
const theme = useTheme();
return (
<Card.Root
- rounded={rounded}
className={className}
backgroundColor={themeCssVariables.background.secondary}
>
diff --git a/packages/twenty-front/src/modules/settings/data-model/components/SettingsDataModelPreviewFormCard.tsx b/packages/twenty-front/src/modules/settings/data-model/components/SettingsDataModelPreviewFormCard.tsx
index 50d6c9cf12e..ae559b72219 100644
--- a/packages/twenty-front/src/modules/settings/data-model/components/SettingsDataModelPreviewFormCard.tsx
+++ b/packages/twenty-front/src/modules/settings/data-model/components/SettingsDataModelPreviewFormCard.tsx
@@ -23,7 +23,7 @@ export const SettingsDataModelPreviewFormCard = ({
form,
isPreviewTitleVisible = true,
}: SettingsDataModelPreviewFormCardProps) => (
- <Card.Root fullWidth rounded>
+ <Card.Root fullWidth>
<Card.Content
className={SETTINGS_DATA_MODEL_PREVIEW_SECTION_CLASS_NAME}
divider={isDefined(form)}
diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx
index 2adf66a971a..b16acddd55f 100644
--- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx
+++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIconLabelForm.tsx
@@ -169,7 +169,7 @@ export const SettingsDataModelFieldIconLabelForm = ({
control={control}
defaultValue={fieldMetadataItem?.isLabelSyncedWithName ?? true}
render={({ field: { onChange, value } }) => (
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconRefresh}
title={t`Synchronize Field Label and API Name`}
diff --git a/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectSearchSection.tsx b/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectSearchSection.tsx
index b970f332970..345668b7401 100644
--- a/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectSearchSection.tsx
+++ b/packages/twenty-front/src/modules/settings/data-model/object-details/components/tabs/SettingsObjectSearchSection.tsx
@@ -184,7 +184,7 @@ export const SettingsObjectSearchSection = ({
return (
<StyledSearchSectionContent>
{!isReadOnly && (
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconEye}
title={t`Global search`}
diff --git a/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectAboutForm.tsx b/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectAboutForm.tsx
index cd0e56324d4..14c9887901d 100644
--- a/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectAboutForm.tsx
+++ b/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/SettingsDataModelObjectAboutForm.tsx
@@ -269,7 +269,7 @@ export const SettingsDataModelObjectAboutForm = ({
control={control}
defaultValue={objectMetadataItem?.isLabelSyncedWithName}
render={({ field: { onChange, value } }) => (
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconRefresh}
title={t`Synchronize Objects Labels and API Names`}
@@ -359,7 +359,7 @@ export const SettingsDataModelObjectAboutForm = ({
control={control}
defaultValue={false}
render={({ field: { onChange, value } }) => (
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconLink}
title={t`Skip creating a Name field `}
diff --git a/packages/twenty-front/src/modules/settings/emailing-domains/components/SettingsEmailingDomainDnsRecords.tsx b/packages/twenty-front/src/modules/settings/emailing-domains/components/SettingsEmailingDomainDnsRecords.tsx
index 087a4201975..be27a908701 100644
--- a/packages/twenty-front/src/modules/settings/emailing-domains/components/SettingsEmailingDomainDnsRecords.tsx
+++ b/packages/twenty-front/src/modules/settings/emailing-domains/components/SettingsEmailingDomainDnsRecords.tsx
@@ -76,7 +76,6 @@ export const SettingsEmailingDomainDnsRecords = ({
<>
<SettingsListCard
items={groups}
- rounded
getItemLabel={(group) => group.title}
RowIconFn={(group) => group.Icon}
RowRightComponent={({ item: group }) => (
diff --git a/packages/twenty-front/src/modules/settings/event-logs/components/SettingsLogs.tsx b/packages/twenty-front/src/modules/settings/event-logs/components/SettingsLogs.tsx
index 41fb37e43e8..8e1713936ca 100644
--- a/packages/twenty-front/src/modules/settings/event-logs/components/SettingsLogs.tsx
+++ b/packages/twenty-front/src/modules/settings/event-logs/components/SettingsLogs.tsx
@@ -166,7 +166,7 @@ export const SettingsLogs = () => {
};
const renderUpgradeCard = () => (
- <Card.Root rounded backgroundColor={themeCssVariables.background.secondary}>
+ <Card.Root backgroundColor={themeCssVariables.background.secondary}>
<SettingsOptionCardContentButton
Icon={IconLock}
title={t`Upgrade to access audit logs`}
@@ -234,7 +234,6 @@ export const SettingsLogs = () => {
return (
<StyledRoot>
<Card.Root
- rounded
fullWidth
backgroundColor={themeCssVariables.background.secondary}
>
diff --git a/packages/twenty-front/src/modules/settings/event-logs/components/SettingsOpenLogConsoleCard.tsx b/packages/twenty-front/src/modules/settings/event-logs/components/SettingsOpenLogConsoleCard.tsx
index a60a237324d..def17ddc494 100644
--- a/packages/twenty-front/src/modules/settings/event-logs/components/SettingsOpenLogConsoleCard.tsx
+++ b/packages/twenty-front/src/modules/settings/event-logs/components/SettingsOpenLogConsoleCard.tsx
@@ -31,7 +31,7 @@ export const SettingsOpenLogConsoleCard = () => {
};
return (
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentButton
Icon={IconHistory}
title={t`Log console`}
diff --git a/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx b/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx
index b4271773133..d55c617dcfc 100644
--- a/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx
+++ b/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx
@@ -54,7 +54,6 @@ export const SettingsLabContent = () => {
{labPublicFeatureFlagsWithImage.map((flag) => (
<Card.Root
key={flag.key}
- rounded
backgroundColor={themeCssVariables.background.secondary}
>
{!hasImageLoadingError[flag.key] && (
@@ -75,10 +74,7 @@ export const SettingsLabContent = () => {
))}
{labPublicFeatureFlagsWithoutImage.length > 0 && (
- <Card.Root
- rounded
- backgroundColor={themeCssVariables.background.secondary}
- >
+ <Card.Root backgroundColor={themeCssVariables.background.secondary}>
{labPublicFeatureFlagsWithoutImage.map((flag, index) => (
<SettingsOptionCardContentSwitch
key={flag.key}
diff --git a/packages/twenty-front/src/modules/settings/logic-functions/components/SettingsLogicFunctionNewForm.tsx b/packages/twenty-front/src/modules/settings/logic-functions/components/SettingsLogicFunctionNewForm.tsx
index eeea4229153..72052262b4a 100644
--- a/packages/twenty-front/src/modules/settings/logic-functions/components/SettingsLogicFunctionNewForm.tsx
+++ b/packages/twenty-front/src/modules/settings/logic-functions/components/SettingsLogicFunctionNewForm.tsx
@@ -54,7 +54,7 @@ export const SettingsLogicFunctionNewForm = ({
onChange={onChange('description')}
readOnly={readonly}
/>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentCounter
Icon={IconClockHour8}
title={t`Timeout`}
diff --git a/packages/twenty-front/src/modules/settings/mcp/components/SettingsMcpSetupCard.tsx b/packages/twenty-front/src/modules/settings/mcp/components/SettingsMcpSetupCard.tsx
index 839de054f70..12de9a8b684 100644
--- a/packages/twenty-front/src/modules/settings/mcp/components/SettingsMcpSetupCard.tsx
+++ b/packages/twenty-front/src/modules/settings/mcp/components/SettingsMcpSetupCard.tsx
@@ -145,7 +145,7 @@ type SettingsMcpSetupCardProps = {
};
export const SettingsMcpSetupCard = ({ card }: SettingsMcpSetupCardProps) => (
- <Card.Root rounded>
+ <Card.Root>
<StyledCardContent>
<StyledLogo aria-hidden>{card.logo}</StyledLogo>
<StyledBody>
diff --git a/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesDefaultRole.tsx b/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesDefaultRole.tsx
index 4274bf0e13f..86aecce1982 100644
--- a/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesDefaultRole.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesDefaultRole.tsx
@@ -75,7 +75,7 @@ export const SettingsRoleDefaultRole = ({
title={t`Default Role`}
description={t`Assigned to users who join via invite link, approved domain, or SSO, and used as fallback when an assigned role is deleted`}
/>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSelect
Icon={IconUserPin}
title={t`Default Role`}
diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelSection.tsx b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelSection.tsx
index 42aa0350e8b..c72882cb066 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelSection.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/record-level-permissions/components/SettingsRolePermissionsObjectLevelRecordLevelSection.tsx
@@ -50,7 +50,7 @@ export const SettingsRolePermissionsObjectLevelRecordLevelSection = ({
actions={<OrganizationAdornment />}
/>
<StyledCardContainer>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentButton
Icon={IconLock}
title={t`Upgrade to access`}
diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/components/SettingsRolePermissionsSettingsSection.tsx b/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/components/SettingsRolePermissionsSettingsSection.tsx
index 3d4a3baaf08..874e3bc0a79 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/components/SettingsRolePermissionsSettingsSection.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/components/SettingsRolePermissionsSettingsSection.tsx
@@ -69,7 +69,7 @@ export const SettingsRolePermissionsSettingsSection = ({
<Section.Header title={t`Layout`} description={t`Layout permissions`} />
{shouldShowAllAccessToggle && (
<StyledCardContainer>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconSettings}
title={t`Layout All Access`}
diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/components/SettingsRolePermissionsToolSection.tsx b/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/components/SettingsRolePermissionsToolSection.tsx
index caf3fb81741..2f91966fa6c 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/components/SettingsRolePermissionsToolSection.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/permission-flags/components/SettingsRolePermissionsToolSection.tsx
@@ -68,7 +68,7 @@ export const SettingsRolePermissionsToolSection = ({
<Section.Header title={t`Logic`} description={t`Logic permissions`} />
{shouldShowAllAccessToggle && (
<StyledCardContainer>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconTool}
title={t`Logic All Access`}
diff --git a/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthBypassOptionsList.tsx b/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthBypassOptionsList.tsx
index d658391cb41..88aa4e8a385 100644
--- a/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthBypassOptionsList.tsx
+++ b/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthBypassOptionsList.tsx
@@ -82,7 +82,7 @@ export const SettingsSecurityAuthBypassOptionsList = () => {
return (
<StyledSettingsSecurityOptionsList>
- <Card.Root rounded>
+ <Card.Root>
{authProviders.google === true && (
<SettingsOptionCardContentSwitch
Icon={IconGoogle}
diff --git a/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthProvidersOptionsList.tsx b/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthProvidersOptionsList.tsx
index 76230ce3484..b257a8f4c01 100644
--- a/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthProvidersOptionsList.tsx
+++ b/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthProvidersOptionsList.tsx
@@ -197,7 +197,7 @@ export const SettingsSecurityAuthProvidersOptionsList = () => {
<StyledSettingsSecurityOptionsList>
{currentWorkspace && (
<>
- <Card.Root rounded>
+ <Card.Root>
{authProviders.google === true && (
<SettingsOptionCardContentSwitch
Icon={IconGoogle}
@@ -232,7 +232,7 @@ export const SettingsSecurityAuthProvidersOptionsList = () => {
/>
)}
</Card.Root>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconLink}
title={t`Invite by Link`}
diff --git a/packages/twenty-front/src/modules/settings/security/components/SettingsSecuritySettings.tsx b/packages/twenty-front/src/modules/settings/security/components/SettingsSecuritySettings.tsx
index 2c34699c7c1..d1928acc48f 100644
--- a/packages/twenty-front/src/modules/settings/security/components/SettingsSecuritySettings.tsx
+++ b/packages/twenty-front/src/modules/settings/security/components/SettingsSecuritySettings.tsx
@@ -228,7 +228,7 @@ export const SettingsSecuritySettings = () => {
actions={<OrganizationAdornment />}
/>
{hasAuditLogsEntitlement ? (
- <Card.Root rounded>
+ <Card.Root>
{isEventLogsEnabled ? (
<SettingsOptionCardContentCounter
Icon={IconClockHour8}
@@ -264,7 +264,7 @@ export const SettingsSecuritySettings = () => {
title={t`Other`}
description={t`Other security settings`}
/>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentCounter
Icon={IconTrash}
title={t`Erasure of soft-deleted records`}
diff --git a/packages/twenty-front/src/modules/settings/unsubscribers/components/SettingsUnsubscribePreview.tsx b/packages/twenty-front/src/modules/settings/unsubscribers/components/SettingsUnsubscribePreview.tsx
index 3ecc154a08b..2ac4b944cbf 100644
--- a/packages/twenty-front/src/modules/settings/unsubscribers/components/SettingsUnsubscribePreview.tsx
+++ b/packages/twenty-front/src/modules/settings/unsubscribers/components/SettingsUnsubscribePreview.tsx
@@ -90,7 +90,6 @@ export const SettingsUnsubscribePreview = () => {
<StyledViewport>
{!loading && (
<StyledCard
- rounded
fullWidth
backgroundColor={themeCssVariables.background.primary}
>
diff --git a/packages/twenty-front/src/modules/settings/workspace/components/ClickTrackingSwitch.tsx b/packages/twenty-front/src/modules/settings/workspace/components/ClickTrackingSwitch.tsx
index fc1e87f634c..dc906adc4c8 100644
--- a/packages/twenty-front/src/modules/settings/workspace/components/ClickTrackingSwitch.tsx
+++ b/packages/twenty-front/src/modules/settings/workspace/components/ClickTrackingSwitch.tsx
@@ -47,7 +47,7 @@ export const ClickTrackingSwitch = () => {
return (
<>
{currentWorkspace ? (
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconClick}
title={t`Track link clicks`}
diff --git a/packages/twenty-front/src/modules/settings/workspace/components/ImpersonationSwitch.tsx b/packages/twenty-front/src/modules/settings/workspace/components/ImpersonationSwitch.tsx
index 99ff6172a5a..c26e11731cf 100644
--- a/packages/twenty-front/src/modules/settings/workspace/components/ImpersonationSwitch.tsx
+++ b/packages/twenty-front/src/modules/settings/workspace/components/ImpersonationSwitch.tsx
@@ -43,7 +43,7 @@ export const ImpersonationSwitch = () => {
};
return (
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconLifebuoy}
title={t`Allow Support Team Access`}
diff --git a/packages/twenty-front/src/modules/settings/workspace/components/OpenTrackingSwitch.tsx b/packages/twenty-front/src/modules/settings/workspace/components/OpenTrackingSwitch.tsx
index c91c3683965..e5b907ab5ad 100644
--- a/packages/twenty-front/src/modules/settings/workspace/components/OpenTrackingSwitch.tsx
+++ b/packages/twenty-front/src/modules/settings/workspace/components/OpenTrackingSwitch.tsx
@@ -47,7 +47,7 @@ export const OpenTrackingSwitch = () => {
return (
<>
{currentWorkspace ? (
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconEye}
title={t`Track opens`}
diff --git a/packages/twenty-front/src/modules/settings/workspace/components/SettingsWorkspaceEmailSyncSection.tsx b/packages/twenty-front/src/modules/settings/workspace/components/SettingsWorkspaceEmailSyncSection.tsx
index ecddd85c687..c1b9e2b2507 100644
--- a/packages/twenty-front/src/modules/settings/workspace/components/SettingsWorkspaceEmailSyncSection.tsx
+++ b/packages/twenty-front/src/modules/settings/workspace/components/SettingsWorkspaceEmailSyncSection.tsx
@@ -51,7 +51,7 @@ export const SettingsWorkspaceEmailSyncSection = () => {
title={t`Sync`}
description={t`Control what the workspace imports from connected mailboxes and calendars`}
/>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconMail}
title={t`Sync Internal Emails`}
diff --git a/packages/twenty-front/src/modules/side-panel/pages/send-campaign/components/SendCampaignRecipientsCard.tsx b/packages/twenty-front/src/modules/side-panel/pages/send-campaign/components/SendCampaignRecipientsCard.tsx
index 5e41958267b..791b70c41fc 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/send-campaign/components/SendCampaignRecipientsCard.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/send-campaign/components/SendCampaignRecipientsCard.tsx
@@ -72,7 +72,7 @@ export const SendCampaignRecipientsCard = ({
].filter(({ count }) => count > 0);
return (
- <Card.Root rounded fullWidth>
+ <Card.Root fullWidth>
<SettingsListItemCardContent
LeftIcon={IconUsersGroup}
label={isNonEmptyString(listName) ? t`In ${listName}` : t`In the list`}
diff --git a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminAiProviderDetail.tsx b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminAiProviderDetail.tsx
index 30efef08017..60ec6031f81 100644
--- a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminAiProviderDetail.tsx
+++ b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminAiProviderDetail.tsx
@@ -327,7 +327,6 @@ export const SettingsAdminAiProviderDetail = () => {
{provider && (
<SettingsTableCard
- rounded
items={providerInfoItems}
gridAutoColumns="120px 1fr"
/>
diff --git a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminApplicationRegistrationGeneralSwitches.tsx b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminApplicationRegistrationGeneralSwitches.tsx
index 30143887997..83a946697df 100644
--- a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminApplicationRegistrationGeneralSwitches.tsx
+++ b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminApplicationRegistrationGeneralSwitches.tsx
@@ -33,7 +33,7 @@ export const SettingsAdminApplicationRegistrationGeneralSwitches = ({
<Section.Root>
<Section.Header title={t`Installation`} />
<StyledSwitchContainer>
- <Card.Root rounded fullWidth>
+ <Card.Root fullWidth>
<SettingsOptionCardContentSwitch
Icon={IconArrowBarToDown}
title={t`Allow installation`}
@@ -51,7 +51,7 @@ export const SettingsAdminApplicationRegistrationGeneralSwitches = ({
}
/>
</Card.Root>
- <Card.Root rounded fullWidth>
+ <Card.Root fullWidth>
<SettingsOptionCardContentSwitch
Icon={IconShield}
title={t`Vetted`}
@@ -69,7 +69,7 @@ export const SettingsAdminApplicationRegistrationGeneralSwitches = ({
}
/>
</Card.Root>
- <Card.Root rounded fullWidth>
+ <Card.Root fullWidth>
<SettingsOptionCardContentSwitch
Icon={IconPinned}
title={t`Pre-install on new workspaces`}
diff --git a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminUserDetail.tsx b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminUserDetail.tsx
index cbd8eff2f6b..0570a8fa94e 100644
--- a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminUserDetail.tsx
+++ b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminUserDetail.tsx
@@ -227,7 +227,6 @@ export const SettingsAdminUserDetail = () => {
/>
<SettingsTableCard
items={userInfoItems}
- rounded
gridAutoColumns="1fr 4fr"
/>
</Section.Root>
diff --git a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminWorkspaceDetail.tsx b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminWorkspaceDetail.tsx
index 1e39379cdba..baca3482773 100644
--- a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminWorkspaceDetail.tsx
+++ b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminWorkspaceDetail.tsx
@@ -451,7 +451,7 @@ export const SettingsAdminWorkspaceDetail = () => {
{isLoadingThreads ? (
<SettingsSectionSkeletonLoader />
) : threads.length === 0 ? (
- <Card.Root rounded>
+ <Card.Root>
<TableRow gridTemplateColumns="1fr">
<TableCell
color={themeCssVariables.font.color.tertiary}
diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsAiModelsTab.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsAiModelsTab.tsx
index bd84526c460..df791e30468 100644
--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsAiModelsTab.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsAiModelsTab.tsx
@@ -55,10 +55,7 @@ export const SettingsAiModelsTab = () => {
title={t`Models`}
description={t`Choose the default modes for people and agents`}
/>
- <Card.Root
- rounded
- backgroundColor={themeCssVariables.background.secondary}
- >
+ <Card.Root backgroundColor={themeCssVariables.background.secondary}>
<StyledSettingsSelectGroup controlWidth={160}>
<SettingsOptionCardContentSelect
Icon={IconMessage}
diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillFormContent.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillFormContent.tsx
index 1925b3ac6ea..d597d8bfb80 100644
--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillFormContent.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsSkillFormContent.tsx
@@ -207,7 +207,7 @@ export const SettingsSkillFormContent = ({
{!isReadonlyMode && (
<div>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconRefresh}
title={t`Synchronize Label and API Name`}
diff --git a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationGeneralInfo.tsx b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationGeneralInfo.tsx
index 85d6bfd6748..f4cb8898817 100644
--- a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationGeneralInfo.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationGeneralInfo.tsx
@@ -214,11 +214,7 @@ export const SettingsApplicationRegistrationGeneralInfo = ({
<Section.Root>
<Section.Header title={t`General`} description={t`About your app`} />
<StyledGeneralContainer>
- <SettingsTableCard
- rounded
- items={generateItems()}
- gridAutoColumns="3fr 8fr"
- />
+ <SettingsTableCard items={generateItems()} gridAutoColumns="3fr 8fr" />
<SettingsApplicationRegistrationShareLinkButtons
shareLink={shareLink}
isInstalled={isApplicationInstalled}
diff --git a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationInstallStats.tsx b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationInstallStats.tsx
index 86ec20f0a28..fd98bde5a53 100644
--- a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationInstallStats.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationRegistrationInstallStats.tsx
@@ -142,7 +142,6 @@ export const SettingsApplicationRegistrationInstallStats = ({
<StyledStats>
<div role="group" aria-label={t`Install statistics`}>
<SettingsTableCard
- rounded
items={statsItems}
gridAutoColumns="minmax(0, 200px) minmax(0, 1fr)"
/>
@@ -162,7 +161,6 @@ export const SettingsApplicationRegistrationInstallStats = ({
}
/>
<SettingsTableCard
- rounded
items={creditsUsedItems}
gridAutoColumns="minmax(0, 200px) minmax(0, 1fr)"
/>
diff --git a/packages/twenty-front/src/pages/settings/applications/components/SettingsAvailableApplicationCard.tsx b/packages/twenty-front/src/pages/settings/applications/components/SettingsAvailableApplicationCard.tsx
index d5ced4f03c9..b06e5a544a6 100644
--- a/packages/twenty-front/src/pages/settings/applications/components/SettingsAvailableApplicationCard.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/components/SettingsAvailableApplicationCard.tsx
@@ -69,7 +69,6 @@ export const SettingsAvailableApplicationCard = ({
return (
<Card.Root
- rounded
fullWidth
render={
<Link
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationAutoUpdateSection.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationAutoUpdateSection.tsx
index cbb64261974..74bea214485 100644
--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationAutoUpdateSection.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationAutoUpdateSection.tsx
@@ -38,7 +38,7 @@ export const SettingsApplicationAutoUpdateSection = ({
return (
<Section.Root>
<Section.Header title={t`Auto update`} />
- <Card.Root rounded fullWidth>
+ <Card.Root fullWidth>
<SettingsOptionCardContentSwitch
Icon={IconRefresh}
title={t`Auto-upgrade`}
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationOAuthTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationOAuthTab.tsx
index 133b8cd0675..029822237f0 100644
--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationOAuthTab.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationOAuthTab.tsx
@@ -134,11 +134,7 @@ export const SettingsApplicationRegistrationOAuthTab = ({
title={t`OAuth`}
description={t`Credentials and scopes for OAuth authorization flows`}
/>
- <SettingsTableCard
- rounded
- items={credentialItems}
- gridAutoColumns="3fr 8fr"
- />
+ <SettingsTableCard items={credentialItems} gridAutoColumns="3fr 8fr" />
<StyledRotateContainer>
<Button
startIcon={<IconRefresh />}
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationTimelineActivityTypeSettingsTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationTimelineActivityTypeSettingsTab.tsx
index a6ca5cd64ff..ff3ca5e6fad 100644
--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationTimelineActivityTypeSettingsTab.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationTimelineActivityTypeSettingsTab.tsx
@@ -116,7 +116,7 @@ export const SettingsApplicationTimelineActivityTypeSettingsTab = ({
title={t`Activity visibility`}
description={t`Choose whether this activity type appears in record timelines`}
/>
- <Card.Root rounded fullWidth>
+ <Card.Root fullWidth>
<SettingsOptionCardContentSwitch
Icon={IconTimelineEvent}
title={t`Active`}
diff --git a/packages/twenty-front/src/pages/settings/communications/SettingsWorkspaceNewUnsubscribeTopic.tsx b/packages/twenty-front/src/pages/settings/communications/SettingsWorkspaceNewUnsubscribeTopic.tsx
index 9f62f9e55a9..019ce72a82a 100644
--- a/packages/twenty-front/src/pages/settings/communications/SettingsWorkspaceNewUnsubscribeTopic.tsx
+++ b/packages/twenty-front/src/pages/settings/communications/SettingsWorkspaceNewUnsubscribeTopic.tsx
@@ -152,7 +152,7 @@ export const SettingsWorkspaceNewUnsubscribeTopic = () => {
title={t`Visibility`}
description={t`Control whether recipients can find and manage this topic.`}
/>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconEye}
title={t`Listed on the unsubscribe page`}
diff --git a/packages/twenty-front/src/pages/settings/communications/SettingsWorkspaceUnsubscribeTopicDetail.tsx b/packages/twenty-front/src/pages/settings/communications/SettingsWorkspaceUnsubscribeTopicDetail.tsx
index a90e10422ed..43b69a3c0e8 100644
--- a/packages/twenty-front/src/pages/settings/communications/SettingsWorkspaceUnsubscribeTopicDetail.tsx
+++ b/packages/twenty-front/src/pages/settings/communications/SettingsWorkspaceUnsubscribeTopicDetail.tsx
@@ -189,7 +189,7 @@ export const SettingsWorkspaceUnsubscribeTopicDetail = () => {
title={t`Visibility`}
description={t`Control whether recipients can find and manage this topic.`}
/>
- <Card.Root rounded>
+ <Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconEye}
title={t`Listed on the unsubscribe page`}
diff --git a/packages/twenty-ui/docs/cardPropDescriptions.ts b/packages/twenty-ui/docs/cardPropDescriptions.ts
index 875a4971e89..d23ce71599c 100644
--- a/packages/twenty-ui/docs/cardPropDescriptions.ts
+++ b/packages/twenty-ui/docs/cardPropDescriptions.ts
@@ -3,7 +3,6 @@ import { type CardRootProps } from '../src/primitives/surfaces/Card/types/CardRo
export const CARD_PROP_DESCRIPTIONS = {
children: 'Card sections or other content.',
fullWidth: 'Sets the card width to 100% of its container.',
- rounded: 'Cards already use the same rounded corners when omitted.',
backgroundColor:
'CSS background color of the outer card. Child sections have their own backgrounds.',
className: 'CSS class merged with the part class.',
diff --git a/packages/twenty-ui/generated/components.docs.json b/packages/twenty-ui/generated/components.docs.json
index 1428edd41fd..8bd56fbfade 100644
--- a/packages/twenty-ui/generated/components.docs.json
+++ b/packages/twenty-ui/generated/components.docs.json
@@ -8079,13 +8079,6 @@
"defaultValue": null,
"description": "Element or render callback composed through Base UI useRender. Supply native button or link attributes on the rendered owner."
},
- {
- "name": "rounded",
- "type": "boolean",
- "required": false,
- "defaultValue": null,
- "description": "Cards already use the same rounded corners when omitted."
- },
{
"name": "style",
"type": "CSSProperties",
diff --git a/packages/twenty-ui/src/primitives/surfaces/Card/Card.module.scss b/packages/twenty-ui/src/primitives/surfaces/Card/Card.module.scss
index 79b55b0269a..7f2cf10b550 100644
--- a/packages/twenty-ui/src/primitives/surfaces/Card/Card.module.scss
+++ b/packages/twenty-ui/src/primitives/surfaces/Card/Card.module.scss
@@ -14,10 +14,6 @@
overflow: hidden;
width: auto;
- &[data-rounded] {
- border-radius: var(--t-border-radius-md);
- }
-
&[data-full-width] {
width: 100%;
}
diff --git a/packages/twenty-ui/src/primitives/surfaces/Card/__tests__/Card.test.tsx b/packages/twenty-ui/src/primitives/surfaces/Card/__tests__/Card.test.tsx
index d356dc3e221..5f150614d08 100644
--- a/packages/twenty-ui/src/primitives/surfaces/Card/__tests__/Card.test.tsx
+++ b/packages/twenty-ui/src/primitives/surfaces/Card/__tests__/Card.test.tsx
@@ -81,7 +81,6 @@ describe('Card rendering', () => {
render(
<Card.Root
fullWidth
- rounded
backgroundColor="rebeccapurple"
style={{ marginTop: 7 }}
>
@@ -92,7 +91,6 @@ describe('Card rendering', () => {
const root = screen.getByText('Import summary');
expect(root).toHaveAttribute('data-full-width', 'true');
- expect(root).toHaveAttribute('data-rounded', 'true');
expect(root).toHaveStyle({ marginTop: '7px' });
expect(root.style.getPropertyValue('--card-background-color')).toBe(
'rebeccapurple',
@@ -120,7 +118,6 @@ describe('Card rendering', () => {
'Import actions',
]);
expect(root).not.toHaveAttribute('data-full-width');
- expect(root).not.toHaveAttribute('data-rounded');
expect(screen.getByText('Ready records')).toHaveAttribute(
'data-divider',
'true',
diff --git a/packages/twenty-ui/src/primitives/surfaces/Card/internal/CardRoot.tsx b/packages/twenty-ui/src/primitives/surfaces/Card/internal/CardRoot.tsx
index 42c5cdbbc75..99d02cc5a58 100644
--- a/packages/twenty-ui/src/primitives/surfaces/Card/internal/CardRoot.tsx
+++ b/packages/twenty-ui/src/primitives/surfaces/Card/internal/CardRoot.tsx
@@ -11,7 +11,6 @@ import styles from '../Card.module.scss';
export const CardRoot = ({
className,
fullWidth,
- rounded,
backgroundColor,
style,
render,
@@ -25,7 +24,6 @@ export const CardRoot = ({
...props,
className: clsx(styles.card, className),
'data-full-width': fullWidth || undefined,
- 'data-rounded': rounded || undefined,
style: isDefined(backgroundColor)
? ({
...style,
diff --git a/packages/twenty-ui/src/primitives/surfaces/Card/types/CardRootProps.ts b/packages/twenty-ui/src/primitives/surfaces/Card/types/CardRootProps.ts
index 0ec20c0ae24..34858dde37e 100644
--- a/packages/twenty-ui/src/primitives/surfaces/Card/types/CardRootProps.ts
+++ b/packages/twenty-ui/src/primitives/surfaces/Card/types/CardRootProps.ts
@@ -2,6 +2,5 @@ import { type useRender } from '@base-ui/react/use-render';
export type CardRootProps = useRender.ComponentProps<'div'> & {
fullWidth?: boolean;
- rounded?: boolean;
backgroundColor?: string;
};