From 16b81b5e786d6948990db42eee48697c8c11160a Mon Sep 17 00:00:00 2001 From: Bill Leoutsakos Date: Fri, 18 Sep 2026 15:38:45 -0700 Subject: [PATCH] refactor(emcn): centralize destructive ghost button colors --- .../document-tags-modal/document-tags-modal.tsx | 4 ++-- .../components/base-tags-modal/base-tags-modal.tsx | 4 ++-- .../components/condition-input/condition-input.tsx | 4 ++-- .../document-tag-entry/document-tag-entry.tsx | 4 ++-- .../sub-block/components/eval-input/eval-input.tsx | 4 ++-- .../filter-builder/components/filter-rule-row.tsx | 4 ++-- .../knowledge-tag-filters/knowledge-tag-filters.tsx | 4 ++-- .../sort-builder/components/sort-rule-row.tsx | 4 ++-- .../sub-block/components/starter/input-format.tsx | 4 ++-- .../components/variables-input/variables-input.tsx | 4 ++-- .../w/[workflowId]/components/variables/variables.tsx | 4 ++-- packages/emcn/src/components/button/button.tsx | 10 ++++++++++ 12 files changed, 32 insertions(+), 22 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/components/document-tags-modal/document-tags-modal.tsx b/apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/components/document-tags-modal/document-tags-modal.tsx index 3f8f9bec003..414c7c5511b 100644 --- a/apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/components/document-tags-modal/document-tags-modal.tsx +++ b/apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/components/document-tags-modal/document-tags-modal.tsx @@ -408,12 +408,12 @@ export function DocumentTagsModal({
diff --git a/apps/sim/app/workspace/[workspaceId]/knowledge/[id]/components/base-tags-modal/base-tags-modal.tsx b/apps/sim/app/workspace/[workspaceId]/knowledge/[id]/components/base-tags-modal/base-tags-modal.tsx index 46163ac91ea..11fd1e18f6d 100644 --- a/apps/sim/app/workspace/[workspaceId]/knowledge/[id]/components/base-tags-modal/base-tags-modal.tsx +++ b/apps/sim/app/workspace/[workspaceId]/knowledge/[id]/components/base-tags-modal/base-tags-modal.tsx @@ -294,12 +294,12 @@ export function BaseTagsModal({ open, onOpenChange, knowledgeBaseId }: BaseTagsM
diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/condition-input/condition-input.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/condition-input/condition-input.tsx index f29ef3eae1d..41fccf4943f 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/condition-input/condition-input.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/condition-input/condition-input.tsx @@ -1023,12 +1023,12 @@ export function ConditionInput({
+ */ + 'ghost-destructive': 'text-[var(--text-error)] hover-hover:text-[var(--text-error)]', + /** + * Muted destructive action that turns red on hover. + * @example + */ + 'ghost-destructive-muted': 'text-[var(--text-muted)] hover-hover:text-[var(--text-error)]', subtle: 'text-[var(--text-body)] hover-hover:text-[var(--text-body)] hover-hover:bg-[var(--surface-4)]', 'ghost-secondary': 'text-[var(--text-muted)] hover-hover:text-[var(--text-primary)]',