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':
|
||||
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
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user