1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-14 01:24:19 +02:00

fix: use list-group variable instead of alert (#33658)

Use $list-group-item-color-scale variable in list-group NOT $alert-color-scale
This commit is contained in:
Mona Brahmakshatriya
2021-04-18 02:53:56 +05:30
committed by GitHub
parent 69f5c0130b
commit 6fc74ebbbf

View File

@@ -166,7 +166,7 @@
$list-group-background: shift-color($value, $list-group-item-bg-scale); $list-group-background: shift-color($value, $list-group-item-bg-scale);
$list-group-color: shift-color($value, $list-group-item-color-scale); $list-group-color: shift-color($value, $list-group-item-color-scale);
@if (contrast-ratio($list-group-background, $list-group-color) < $min-contrast-ratio) { @if (contrast-ratio($list-group-background, $list-group-color) < $min-contrast-ratio) {
$list-group-color: mix($value, color-contrast($list-group-background), abs($alert-color-scale)); $list-group-color: mix($value, color-contrast($list-group-background), abs($list-group-item-color-scale));
} }
@include list-group-item-variant($state, $list-group-background, $list-group-color); @include list-group-item-variant($state, $list-group-background, $list-group-color);