fix: update fallback color in getIntentColor function to use theme default
This commit is contained in:
@@ -15,9 +15,9 @@ export const getIntentColor = (intent?: ActionIntent): string | undefined => {
|
|||||||
case 'success':
|
case 'success':
|
||||||
return 'teal';
|
return 'teal';
|
||||||
case 'primary':
|
case 'primary':
|
||||||
return undefined; // Default primary color
|
return 'brand'; // Default primary color
|
||||||
|
|
||||||
default:
|
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
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user