From 827e161c89009664609d4de75e1ff2adb22fc5d5 Mon Sep 17 00:00:00 2001 From: Arne Molland Date: Fri, 28 Jan 2022 11:17:54 +0100 Subject: [PATCH] Use primary colors for primary IconButton variant --- src/lib/components/buttons/IconButton/IconButton.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/components/buttons/IconButton/IconButton.tsx b/src/lib/components/buttons/IconButton/IconButton.tsx index 4ad03d36..b1d4ffb4 100644 --- a/src/lib/components/buttons/IconButton/IconButton.tsx +++ b/src/lib/components/buttons/IconButton/IconButton.tsx @@ -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,