From 5dba68dfd39966a942a129deef6c36644ae9deb8 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 7 Jan 2021 23:50:28 -0800 Subject: [PATCH] fix: Incorrect border color on table of contents in dark mode --- app/scenes/Document/components/Contents.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scenes/Document/components/Contents.js b/app/scenes/Document/components/Contents.js index 22f696fb..ceda3392 100644 --- a/app/scenes/Document/components/Contents.js +++ b/app/scenes/Document/components/Contents.js @@ -72,7 +72,7 @@ const Wrapper = styled("div")` position: sticky; top: 80px; - box-shadow: 1px 0 0 ${(props) => darken(0.05, props.theme.sidebarBackground)}; + box-shadow: 1px 0 0 ${(props) => props.theme.divider}; margin-top: 40px; margin-right: 2em; min-height: 40px; @@ -108,7 +108,7 @@ const ListItem = styled("li")` padding-right: 2em; line-height: 1.3; border-right: 3px solid - ${(props) => (props.active ? props.theme.textSecondary : "transparent")}; + ${(props) => (props.active ? props.theme.divider : "transparent")}; `; const Link = styled("a")`