From 2774e1c5d6bf075ca99fe8a7d451ae2eed49fb7c Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Sun, 20 Oct 2024 00:56:51 +0200 Subject: [PATCH] Revert "feat: link in stay light on active (#32)" This reverts commit 47aefbbef33d0b88920eb086680b0b9c6a4e61ba. --- src/components/TopBar.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/components/TopBar.js b/src/components/TopBar.js index b7faec1..4bb2f62 100644 --- a/src/components/TopBar.js +++ b/src/components/TopBar.js @@ -91,10 +91,6 @@ const List = styled.div` } } - a.current { - background-color: ${({ theme }) => theme.primary.light}; - } - transition: max-width 0.1s ease-in-out, margin-left 0.1s ease-in-out, opacity 0.5s ease-in-out; max-width: 100%; opacity: 1; @@ -137,7 +133,6 @@ const TopBar = ({ React.cloneElement(link, { key: link.to, onClick: e => toggleMenu(), - className: window.location.pathname === link.props.to && "current", children: link.props.children.toUpperCase() }) :