From: Nudasoft <30935025+Nudasoft@users.noreply.github.com> Date: Thu, 17 Feb 2022 19:20:44 +0000 (+0530) Subject: Add !important property to colored links. (#35740) X-Git-Tag: v5.2.0-beta1~245 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=999bfaa036cb886389050db3645d74dfede0d2e8;p=thirdparty%2Fbootstrap.git Add !important property to colored links. (#35740) * Add !important property to colored links. * Apply suggestions from code review Co-authored-by: Mark Otto --- diff --git a/scss/helpers/_colored-links.scss b/scss/helpers/_colored-links.scss index 8c167dedf5..1cb4182801 100644 --- a/scss/helpers/_colored-links.scss +++ b/scss/helpers/_colored-links.scss @@ -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 } } }