From 03eb4a803b82bcf167ea55daa72e9b47fa9f2376 Mon Sep 17 00:00:00 2001 From: Firman Ramdhani <33869609+firmanramdhani@users.noreply.github.com> Date: Wed, 15 Jul 2026 18:09:37 +0700 Subject: [PATCH] fix: update fallback color in getIntentColor function to use theme default --- packages/ui/src/components/actions-tools/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/components/actions-tools/utils.ts b/packages/ui/src/components/actions-tools/utils.ts index 6e26475..eaddc53 100644 --- a/packages/ui/src/components/actions-tools/utils.ts +++ b/packages/ui/src/components/actions-tools/utils.ts @@ -15,9 +15,9 @@ export const getIntentColor = (intent?: ActionIntent): string | undefined => { case 'success': return 'teal'; case 'primary': - return undefined; // Default primary color + return 'brand'; // Default primary color default: - return 'default'; // Fallback to theme default color if no intent is specified + return 'var(--mantine-color-text)'; // Fallback to theme default color if no intent is specified } };