Skip to content

Commit

Permalink
fix: Do not change nav text color on hover when link is active
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Jul 20, 2020
1 parent 4b19258 commit 80de7d3
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions stylus/components/nav.styl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -175,7 +166,7 @@ $nav-link-secondary
text-decoration none
height auto

&:hover
&:hover:not(.is-active)
color var(--navTextHoverColor)

&.is-active
Expand Down

0 comments on commit 80de7d3

Please sign in to comment.