Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Only use ambiance with secondary variant
Browse files Browse the repository at this point in the history
  • Loading branch information
arnemolland committed Jan 28, 2022
1 parent c60cd11 commit fcb6b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/buttons/IconButton/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fcb6b87

Please sign in to comment.