From: Julien Déramond Date: Mon, 3 Oct 2022 19:39:31 +0000 (+0200) Subject: Add `$enable-important-utilities` condition in colored links X-Git-Tag: v5.3.0-alpha1~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9936ed48d75ae5ebb2034ab0818048b6195b6e07;p=thirdparty%2Fbootstrap.git Add `$enable-important-utilities` condition in colored links --- diff --git a/scss/helpers/_colored-links.scss b/scss/helpers/_colored-links.scss index 1cb4182801..0e03039bbf 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 !important; // stylelint-disable-line declaration-no-important + color: $value if($enable-important-utilities, !important, null); @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)) !important; // stylelint-disable-line declaration-no-important + color: if(color-contrast($value) == $color-contrast-light, shade-color($value, $link-shade-percentage), tint-color($value, $link-shade-percentage)) if($enable-important-utilities, !important, null); } } }