From fcb6b87f1a0f02e0a2891909ddea35911278b5bb Mon Sep 17 00:00:00 2001 From: Arne Molland Date: Fri, 28 Jan 2022 11:14:00 +0100 Subject: [PATCH] Only use ambiance with secondary variant --- src/lib/components/buttons/IconButton/IconButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/buttons/IconButton/IconButton.tsx b/src/lib/components/buttons/IconButton/IconButton.tsx index 25d22957..4ad03d36 100644 --- a/src/lib/components/buttons/IconButton/IconButton.tsx +++ b/src/lib/components/buttons/IconButton/IconButton.tsx @@ -50,7 +50,7 @@ export const IconButton = (props: IconButtonProps) => { const styles = getIconButtonStyles(props, theme) - if (!props.backgroundColor && ambiance) { + if (!props.backgroundColor && props.variant === 'secondary' && ambiance) { styles.backgroundColor = ambiance.color styles.hoverBackgroundColor = ambiance.child.color }