diff options
| author | Julien Déramond <[email protected]> | 2022-10-03 21:39:31 +0200 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2022-10-06 13:04:43 -0700 |
| commit | 9936ed48d75ae5ebb2034ab0818048b6195b6e07 (patch) | |
| tree | 80d5ee5b9c529d43ae2d887193e5a424ec2a032e | |
| parent | 8291746dd471bacf633abbb694f56719a42d8353 (diff) | |
| download | bootstrap-9936ed48d75ae5ebb2034ab0818048b6195b6e07.tar.xz bootstrap-9936ed48d75ae5ebb2034ab0818048b6195b6e07.zip | |
Add `$enable-important-utilities` condition in colored links
| -rw-r--r-- | scss/helpers/_colored-links.scss | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scss/helpers/_colored-links.scss b/scss/helpers/_colored-links.scss index 1cb418280..0e03039bb 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); } } } |
