Skip to content

Commit

Permalink
fix: cancel button color (#1247)
Browse files Browse the repository at this point in the history
  • Loading branch information
StereoPT authored Mar 15, 2023
1 parent 30472f7 commit 4d7d068
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ const ConfirmationDialog = ({
tooltip,
children,
}: ConfirmationDialogProps) => {
const outlineVariant = variant === 'primary' ? 'primaryOutline' : 'dangerOutline';

const renderTrigger = () => {
if (tooltip !== undefined) {
return (
Expand All @@ -50,7 +48,7 @@ const ConfirmationDialog = ({
{description}
</Flex>
<Flex justify="end" gap="16">
<AlertDialogCancel variant={outlineVariant}>Cancel</AlertDialogCancel>
<AlertDialogCancel variant="primaryOutline">Cancel</AlertDialogCancel>
<AlertDialogAction variant={variant} onClick={confirmationHandler}>
{confirmationLabel}
</AlertDialogAction>
Expand Down

0 comments on commit 4d7d068

Please sign in to comment.