mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-01 01:21:49 +02:00
Rename scale-color() function to shift-color() to avoid collision with Sass's own color function (#32149)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user