From 999bfaa036cb886389050db3645d74dfede0d2e8 Mon Sep 17 00:00:00 2001 From: Nudasoft <30935025+Nudasoft@users.noreply.github.com> Date: Fri, 18 Feb 2022 00:50:44 +0530 Subject: [PATCH] Add !important property to colored links. (#35740) * Add !important property to colored links. * Apply suggestions from code review Co-authored-by: Mark Otto --- scss/helpers/_colored-links.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } } }