Skip to content

Commit

Permalink
More forceful nw-link--no-visited-state style
Browse files Browse the repository at this point in the history
I was surprised that .lbh-link--no-visited-state didn’t use an
!important flag, so would often be overridden by more specific
component styles – which is exactly the opposite of what you’d want
from a specific utility class like this.

Replacing the @extend with our own :visited definition allows us to
add the !important flag.
  • Loading branch information
zarino authored and dracos committed Feb 2, 2022
1 parent f936b93 commit d20b524
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cobrand_hackney/static/_links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@
}

.nw-link--no-visited-state {
@extend .lbh-link--no-visited-state;
&:visited {
color: lbh-colour("lbh-link") !important;
}
}

0 comments on commit d20b524

Please sign in to comment.