Skip to content

Commit 68a21c1

Browse files
waleedlatif1claude
andcommitted
fix(modals): consistent font colors in delete/confirmation modals
Remove text-tertiary color from recovery and "cannot be undone" text in delete modals so it matches the base text-secondary paragraph color. Also remove inconsistent text-caption sizing from two modals. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0b439ec commit 68a21c1

File tree

12 files changed

+17
-34
lines changed

12 files changed

+17
-34
lines changed

apps/sim/app/workspace/[workspaceId]/files/files.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,10 +1232,8 @@ const DeleteConfirmModal = memo(function DeleteConfirmModal({
12321232
<ModalBody>
12331233
<p className='text-[var(--text-secondary)]'>
12341234
Are you sure you want to delete{' '}
1235-
<span className='font-medium text-[var(--text-primary)]'>{fileName}</span>?{' '}
1236-
<span className='text-[var(--text-tertiary)]'>
1237-
You can restore it from Recently Deleted in Settings.
1238-
</span>
1235+
<span className='font-medium text-[var(--text-primary)]'>{fileName}</span>? You can
1236+
restore it from Recently Deleted in Settings.
12391237
</p>
12401238
</ModalBody>
12411239
<ModalFooter>

apps/sim/app/workspace/[workspaceId]/knowledge/[id]/base.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,9 +1182,7 @@ export function KnowledgeBase({
11821182
The knowledge base and all {pagination.total} document
11831183
{pagination.total === 1 ? '' : 's'} within it will be removed.
11841184
</span>{' '}
1185-
<span className='text-[var(--text-tertiary)]'>
1186-
You can restore it from Recently Deleted in Settings.
1187-
</span>
1185+
You can restore it from Recently Deleted in Settings.
11881186
</p>
11891187
</ModalBody>
11901188
<ModalFooter>

apps/sim/app/workspace/[workspaceId]/knowledge/components/delete-knowledge-base-modal/delete-knowledge-base-modal.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ export const DeleteKnowledgeBaseModal = memo(function DeleteKnowledgeBaseModal({
5959
</span>
6060
</>
6161
)}{' '}
62-
<span className='text-[var(--text-tertiary)]'>
63-
You can restore it from Recently Deleted in Settings.
64-
</span>
62+
You can restore it from Recently Deleted in Settings.
6563
</p>
6664
</ModalBody>
6765
<ModalFooter>

apps/sim/app/workspace/[workspaceId]/logs/components/logs-toolbar/components/notifications/notifications.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ export const NotificationSettings = memo(function NotificationSettings({
12671267
<ModalContent size='sm'>
12681268
<ModalHeader>Delete Notification</ModalHeader>
12691269
<ModalBody>
1270-
<p className='text-[var(--text-secondary)] text-caption'>
1270+
<p className='text-[var(--text-secondary)]'>
12711271
<span className='text-[var(--text-error)]'>
12721272
This will permanently remove the notification and stop all deliveries.
12731273
</span>{' '}

apps/sim/app/workspace/[workspaceId]/scheduled-tasks/scheduled-tasks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ export function ScheduledTasks() {
447447
<ModalContent size='sm'>
448448
<ModalHeader>Delete Scheduled Task</ModalHeader>
449449
<ModalBody>
450-
<p className='text-[var(--text-secondary)] text-caption'>
450+
<p className='text-[var(--text-secondary)]'>
451451
Are you sure you want to delete{' '}
452452
<span className='font-medium text-[var(--text-primary)]'>
453453
{activeTask?.jobTitle || 'this task'}

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table/table.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,9 +1852,7 @@ export function Table({
18521852
<span className='text-[var(--text-error)]'>
18531853
All {tableData?.rowCount ?? 0} rows will be removed.
18541854
</span>{' '}
1855-
<span className='text-[var(--text-tertiary)]'>
1856-
You can restore it from Recently Deleted in Settings.
1857-
</span>
1855+
You can restore it from Recently Deleted in Settings.
18581856
</p>
18591857
</ModalBody>
18601858
<ModalFooter>

apps/sim/app/workspace/[workspaceId]/tables/tables.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,7 @@ export function Tables() {
539539
<span className='text-[var(--text-error)]'>
540540
All {activeTable?.rowCount} rows will be removed.
541541
</span>{' '}
542-
<span className='text-[var(--text-tertiary)]'>
543-
You can restore it from Recently Deleted in Settings.
544-
</span>
542+
You can restore it from Recently Deleted in Settings.
545543
</p>
546544
</ModalBody>
547545
<ModalFooter>

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -897,9 +897,7 @@ export const Panel = memo(function Panel({ workspaceId: propWorkspaceId }: Panel
897897
<span className='text-[var(--text-error)]'>
898898
All associated blocks, executions, and configuration will be removed.
899899
</span>{' '}
900-
<span className='text-[var(--text-tertiary)]'>
901-
You can restore it from Recently Deleted in Settings.
902-
</span>
900+
You can restore it from Recently Deleted in Settings.
903901
</p>
904902
</ModalBody>
905903
<ModalFooter>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/delete-modal/delete-modal.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,9 @@ export function DeleteModal({
230230
<ModalBody>
231231
<p className='text-[var(--text-secondary)]'>
232232
{renderDescription()}{' '}
233-
{restorableTypes.has(itemType) ? (
234-
<span className='text-[var(--text-tertiary)]'>
235-
You can restore it from Recently Deleted in Settings.
236-
</span>
237-
) : (
238-
<span className='text-[var(--text-tertiary)]'>This action cannot be undone.</span>
239-
)}
233+
{restorableTypes.has(itemType)
234+
? 'You can restore it from Recently Deleted in Settings.'
235+
: 'This action cannot be undone.'}
240236
</p>
241237
</ModalBody>
242238
<ModalFooter>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workspace-header/components/invite-modal/invite-modal.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,7 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
613613
<span className='font-medium text-[var(--text-primary)]'>
614614
{memberToRemove?.email}
615615
</span>{' '}
616-
from this workspace?{' '}
617-
<span className='text-[var(--text-tertiary)]'>This action cannot be undone.</span>
616+
from this workspace? This action cannot be undone.
618617
</p>
619618
</ModalBody>
620619
<ModalFooter>
@@ -646,7 +645,7 @@ export function InviteModal({ open, onOpenChange, workspaceName }: InviteModalPr
646645
<span className='font-medium text-[var(--text-primary)]'>
647646
{invitationToRemove?.email}
648647
</span>
649-
? <span className='text-[var(--text-tertiary)]'>This action cannot be undone.</span>
648+
? This action cannot be undone.
650649
</p>
651650
</ModalBody>
652651
<ModalFooter>

0 commit comments

Comments
 (0)