diff options
author | Mark Otto <markd.otto@gmail.com> | 2020-11-13 21:50:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-13 21:50:59 +0300 |
commit | 55f2192a398cdb4446937322f14b3e7e359a0d00 (patch) | |
tree | e71a118fc14cbd68e59be239ade796cb4666911c /scss/_alert.scss | |
parent | 483b6413e90e5ae01cc7719cb6388bc175d3b275 (diff) |
Rename scale-color() function to shift-color() to avoid collision with Sass's own color function (#32149)
Diffstat (limited to 'scss/_alert.scss')
-rw-r--r-- | scss/_alert.scss | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scss/_alert.scss b/scss/_alert.scss index 24fa2bd140..3d9b69bcd3 100644 --- a/scss/_alert.scss +++ b/scss/_alert.scss @@ -44,9 +44,9 @@ // Generate contextual modifier classes for colorizing the alert. @each $state, $value in $theme-colors { - $background: scale-color($value, $alert-bg-scale); - $border: scale-color($value, $alert-border-scale); - $color: scale-color($value, $alert-color-scale); + $background: shift-color($value, $alert-bg-scale); + $border: shift-color($value, $alert-border-scale); + $color: shift-color($value, $alert-color-scale); @if (contrast-ratio($background, $color) < $min-contrast-ratio) { $color: mix($value, color-contrast($background), abs($alert-color-scale)); } |