From 22713888851847a978fcaeda35bc24660d783a8e Mon Sep 17 00:00:00 2001 From: rthera7 Date: Fri, 13 May 2022 18:32:58 +0530 Subject: [PATCH] Removed unwanted fragment, centered the Chevron indicator Signed-off-by: rthera7 --- .../core-components/src/layout/Sidebar/Items.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/core-components/src/layout/Sidebar/Items.tsx b/packages/core-components/src/layout/Sidebar/Items.tsx index d2e2c22689..c004f6904c 100644 --- a/packages/core-components/src/layout/Sidebar/Items.tsx +++ b/packages/core-components/src/layout/Sidebar/Items.tsx @@ -370,15 +370,13 @@ const SidebarItemBase = forwardRef((props, ref) => { const { isOpen } = useContext(SidebarContext); const divStyle = - !isOpen && children ? { marginLeft: '24px', marginBottom: '4px' } : {}; + !isOpen && children ? { display: 'flex', marginLeft: '24px' } : {}; const displayItemIcon = ( - <> -
- - {!isOpen && children ? : <>} -
- +
+ + {!isOpen && children ? : <>} +
); const itemIcon = (