1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 09:05:47 +02:00

Rename scale-color() function to shift-color() to avoid collision with Sass's own color function (#32149)

This commit is contained in:
Mark Otto
2020-11-13 10:50:59 -08:00
committed by GitHub
parent 483b6413e9
commit 55f2192a39
5 changed files with 20 additions and 15 deletions

View File

@@ -152,8 +152,8 @@
// Organizationally, this must come after the `:hover` states.
@each $state, $value in $theme-colors {
$background: scale-color($value, $list-group-item-bg-scale);
$color: scale-color($value, $list-group-item-color-scale);
$background: shift-color($value, $list-group-item-bg-scale);
$color: shift-color($value, $list-group-item-color-scale);
@if (contrast-ratio($background, $color) < $min-contrast-ratio) {
$color: mix($value, color-contrast($background), abs($alert-color-scale));
}