From 177b8559d38476c67b2c79b8ab18fcb3265c43cd Mon Sep 17 00:00:00 2001 From: Imogen Mason Date: Mon, 12 Aug 2019 15:55:15 +0200 Subject: [PATCH] **Fix:** Remove sidenav border in dark mode. (#1189) * Remove sidenav border in dark mode. * Replace ternary with logical and operator. --- src/Sidenav/Sidenav.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Sidenav/Sidenav.tsx b/src/Sidenav/Sidenav.tsx index 01fdb2e90..3d3f3e383 100644 --- a/src/Sidenav/Sidenav.tsx +++ b/src/Sidenav/Sidenav.tsx @@ -28,8 +28,10 @@ const Container = styled("div")(({ theme, compact, dark }) => { overflow: "auto", width: compact ? theme.compactSidebarWidth : theme.sidebarWidth, height: "100%", - borderRight: "1px solid", - borderRightColor: theme.color.separators.default, + ...(!dark && { + borderRight: "1px solid", + borderRightColor: theme.color.separators.default, + }), ".operational-ui__sidenav-item_end": { marginTop: "auto",