From 80de7d3bf8177491f2285992a0bd8402beec97b8 Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Mon, 20 Jul 2020 15:25:44 +0200 Subject: [PATCH] fix: Do not change nav text color on hover when link is active --- stylus/components/nav.styl | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/stylus/components/nav.styl b/stylus/components/nav.styl index 15261fe271..4cf7bc08e1 100644 --- a/stylus/components/nav.styl +++ b/stylus/components/nav.styl @@ -98,10 +98,9 @@ $nav-link &:visited color var(--navTextColor) - &:hover + &:hover:not(.is-active) color var(--navTextHoverColor) - &.active // deprecated &.is-active box-shadow inset rem(4) 0 0 0 var(--primaryColor) font-weight bold @@ -120,14 +119,6 @@ $nav-link background-position center top background-size rem(24) - &.active // deprecated - &.is-active - color var(--navTextActiveColor) - - &:hover - color var(--navTextHoverColor) - - &.active // deprecated &.is-active &:hover box-shadow none @@ -175,7 +166,7 @@ $nav-link-secondary text-decoration none height auto - &:hover + &:hover:not(.is-active) color var(--navTextHoverColor) &.is-active