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

Commit

Permalink
Use primary colors for primary IconButton variant
Browse files Browse the repository at this point in the history
  • Loading branch information
arnemolland committed Jan 28, 2022
1 parent fcb6b87 commit 827e161
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/components/buttons/IconButton/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ const getIconButtonStyles = (props: IconButtonProps, theme: Theme): IconButtonPr
foregroundColor: theme.colors.onSignal,
...common
}

case 'primary':
return {
backgroundColor: theme.colors.primary,
foregroundColor: theme.colors.onPrimary,
...common
}
default:
return {
backgroundColor: theme.colors.iconButton,
Expand Down

0 comments on commit 827e161

Please sign in to comment.