]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add !important property to colored links. (#35740)
authorNudasoft <30935025+Nudasoft@users.noreply.github.com>
Thu, 17 Feb 2022 19:20:44 +0000 (00:50 +0530)
committerGitHub <noreply@github.com>
Thu, 17 Feb 2022 19:20:44 +0000 (11:20 -0800)
* Add !important property to colored links.

* Apply suggestions from code review

Co-authored-by: Mark Otto <otto@github.com>
scss/helpers/_colored-links.scss

index 8c167dedf54873890f514809e2fa56bc5bf52aba..1cb41828018f6ae1d8d09a825aa8732d3e950839 100644 (file)
@@ -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
       }
     }
   }