From 7e54e31efc60dd538c21eb62a98310c5e46b04a6 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Wed, 15 Dec 2021 10:50:08 -0500 Subject: [PATCH] fixed styling for chrome --- webapp/src/components/Icons/base.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/Icons/base.tsx b/webapp/src/components/Icons/base.tsx index 9d48a30..06bd6cf 100644 --- a/webapp/src/components/Icons/base.tsx +++ b/webapp/src/components/Icons/base.tsx @@ -12,8 +12,12 @@ export const useIconStyles = createAppUseStyles(theme => ({ height: `${size}${units}`, width: `${size}${units}`, display: 'flex', + justifyContent: 'center', + alignItems: 'center', }), - svg: ({ color = theme.primaryAccent }) => ({ + svg: ({ color = theme.primaryAccent, size, units = 'em' }) => ({ + height: `${size}${units}`, + width: `${size}${units}`, fill: color }) }))