From 2241f8b91d18bdb888cde6ca00846252aca7aadd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelo=20Forment=C3=A3o?= Date: Thu, 21 Jun 2018 16:58:26 -0300 Subject: [PATCH] fix(docz-theme-default): change background based on toggle --- .../docz-theme-default/src/components/shared/Sidebar/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docz-theme-default/src/components/shared/Sidebar/index.tsx b/packages/docz-theme-default/src/components/shared/Sidebar/index.tsx index 389037b34..a174c01ac 100644 --- a/packages/docz-theme-default/src/components/shared/Sidebar/index.tsx +++ b/packages/docz-theme-default/src/components/shared/Sidebar/index.tsx @@ -18,7 +18,7 @@ const Wrapper = styled('div')` position: relative; flex-direction: column; height: 100%; - background: ${p => p.theme.colors.grayLight}; + background: ${p => wrapperToggle(p) !== '0' ? p.theme.colors.white : p.theme.colors.grayLight}; transition: transform 0.3s, background 0.3s; transform: translateX(${wrapperToggle}); z-index: 99;