From 3761893aa370e9a2be01cd040253b0b57d945b90 Mon Sep 17 00:00:00 2001 From: Rupin Khandelwal Date: Thu, 23 Jun 2022 09:48:16 -0700 Subject: [PATCH] fixed icon and text position to be centered inside highlight bar --- packages/web/components/patterns/HighlightBar.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/web/components/patterns/HighlightBar.tsx b/packages/web/components/patterns/HighlightBar.tsx index 43160d46c..f8efb3ccc 100644 --- a/packages/web/components/patterns/HighlightBar.tsx +++ b/packages/web/components/patterns/HighlightBar.tsx @@ -72,7 +72,7 @@ export function HighlightBar(props: HighlightBarProps): JSX.Element { background: '$grayBg', borderRadius: '4px', border: '1px solid $grayBorder', - boxShadow: theme.shadows.cardBoxShadow.toString(), + boxShadow: '$cardBoxShadow', }} @@ -124,7 +124,6 @@ function BarContent(props: HighlightBarProps): JSX.Element { height: '100%', m: 0, p: 0, - pt: '6px', alignItems: 'baseline', }} > @@ -133,7 +132,6 @@ function BarContent(props: HighlightBarProps): JSX.Element { props.handleButtonClick('delete')} - css={{ color: '$readerFont', height: '100%', m: 0, p: 0, pt: '6px' }} + css={{ color: '$readerFont', height: '100%', m: 0, p: 0, pt: '6px'}} > props.handleButtonClick('comment')} - css={{ color: '$readerFont', height: '100%', m: 0, p: 0, pt: '6px' }} + css={{ color: '$readerFont', height: '100%', m: 0, p: 0}} >