Skip to content

Commit

Permalink
Add !important property to colored links. (#35740)
Browse files Browse the repository at this point in the history
* Add !important property to colored links.

* Apply suggestions from code review

Co-authored-by: Mark Otto <otto@github.com>
  • Loading branch information
nalakapws and mdo committed Feb 17, 2022
1 parent 5565c64 commit 999bfaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scss/helpers/_colored-links.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@each $color, $value in $theme-colors {
.link-#{$color} {
color: $value;
color: $value !important; // stylelint-disable-line declaration-no-important

@if $link-shade-percentage != 0 {
&:hover,
&:focus {
color: if(color-contrast($value) == $color-contrast-light, shade-color($value, $link-shade-percentage), tint-color($value, $link-shade-percentage));
color: if(color-contrast($value) == $color-contrast-light, shade-color($value, $link-shade-percentage), tint-color($value, $link-shade-percentage)) !important; // stylelint-disable-line declaration-no-important
}
}
}
Expand Down

0 comments on commit 999bfaa

Please sign in to comment.