From 81fa27c48c2b0fb09cf91fa6d0ecd9d7a73cde33 Mon Sep 17 00:00:00 2001 From: mattyl006 Date: Mon, 18 Jul 2022 11:50:46 +0200 Subject: [PATCH] desktop Challenge menu option background green when active --- src/components/elements/DesktopChallengeMenu.js | 2 ++ src/components/elements/MobileNavMenu.js | 12 ++++++------ src/components/elements/NavBar/NavBar.js | 12 ++++++------ src/pages/Challenge.js | 4 ++-- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/src/components/elements/DesktopChallengeMenu.js b/src/components/elements/DesktopChallengeMenu.js index fa6eaf0..bc356cc 100644 --- a/src/components/elements/DesktopChallengeMenu.js +++ b/src/components/elements/DesktopChallengeMenu.js @@ -22,6 +22,7 @@ const Option = styled(FlexColumn)` width: 100%; transition: background-color 0.3s ease-in-out; cursor: pointer; + background-color: ${({theme, active}) => active ? theme.colors.green05 : theme.colors.white}; * { cursor: pointer; @@ -39,6 +40,7 @@ const DesktopChallengeMenu = (props) => { {options.map((option, index) => { return (