Skip to content

Commit

Permalink
Merge pull request #1507 from cozy/nav-color
Browse files Browse the repository at this point in the history
No change of color of nav text on hover if it is active
  • Loading branch information
probot-auto-merge[bot] authored Jul 21, 2020
2 parents 5b62f3e + 80de7d3 commit 6410017
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 6410017

Please sign in to comment.