Skip to content

Commit d4f43d0

Browse files
waleedlatif1claude
andcommitted
fix(modals): consistent text colors in delete/confirmation modals
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0b439ec commit d4f43d0

File tree

28 files changed

+35
-48
lines changed

28 files changed

+35
-48
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]/[documentId]/components/delete-chunk-modal/delete-chunk-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function DeleteChunkModal({
3636
<ModalBody>
3737
<p className='text-[var(--text-secondary)]'>
3838
Are you sure you want to delete this chunk?{' '}
39-
<span className='text-[var(--text-error)]'>This action cannot be undone.</span>
39+
This action cannot be undone.
4040
</p>
4141
</ModalBody>
4242
<ModalFooter>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ export function Document({
11871187
from future syncs. To temporarily hide it from search, disable it instead.
11881188
</span>
11891189
) : (
1190-
<span className='text-[var(--text-error)]'>This action cannot be undone.</span>
1190+
This action cannot be undone.
11911191
)}
11921192
</p>
11931193
</ModalBody>

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/[id]/components/base-tags-modal/base-tags-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ export function BaseTagsModal({ open, onOpenChange, knowledgeBaseId }: BaseTagsM
421421
This will remove this tag from {selectedTagUsage?.documentCount || 0} document
422422
{selectedTagUsage?.documentCount !== 1 ? 's' : ''}.
423423
</span>{' '}
424-
<span className='text-[var(--text-error)]'>This action cannot be undone.</span>
424+
This action cannot be undone.
425425
</p>
426426

427427
{selectedTagUsage && selectedTagUsage.documentCount > 0 && (

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,11 +1267,11 @@ 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>{' '}
1274-
<span className='text-[var(--text-error)]'>This action cannot be undone.</span>
1274+
This action cannot be undone.
12751275
</p>
12761276
</ModalBody>
12771277
<ModalFooter>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,12 +447,12 @@ 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'}
454454
</span>
455-
? <span className='text-[var(--text-error)]'>This action cannot be undone.</span>
455+
? This action cannot be undone.
456456
</p>
457457
</ModalBody>
458458
<ModalFooter>

apps/sim/app/workspace/[workspaceId]/settings/components/api-keys/api-keys.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ export function ApiKeys() {
384384
<span className='text-[var(--text-error)]'>
385385
will immediately revoke access for any integrations using it.
386386
</span>{' '}
387-
<span className='text-[var(--text-error)]'>This action cannot be undone.</span>
387+
This action cannot be undone.
388388
</p>
389389
</ModalBody>
390390
<ModalFooter>

apps/sim/app/workspace/[workspaceId]/settings/components/copilot/copilot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export function Copilot() {
369369
<span className='text-[var(--text-error)]'>
370370
will immediately revoke access for any integrations using it.
371371
</span>{' '}
372-
<span className='text-[var(--text-error)]'>This action cannot be undone.</span>
372+
This action cannot be undone.
373373
</p>
374374
</ModalBody>
375375
<ModalFooter>

0 commit comments

Comments
 (0)