]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix: use list-group variable instead of alert (#33658)
authorMona Brahmakshatriya <monajmakwana@gmail.com>
Sat, 17 Apr 2021 21:23:56 +0000 (02:53 +0530)
committerGitHub <noreply@github.com>
Sat, 17 Apr 2021 21:23:56 +0000 (14:23 -0700)
Use $list-group-item-color-scale variable in list-group NOT $alert-color-scale

scss/_list-group.scss

index 2193168c52fdee792e6fc1ac4a592fc6ccaba813..7daa9f10d835747d0e8f82841cfb316af96904ea 100644 (file)
   $list-group-background: shift-color($value, $list-group-item-bg-scale);
   $list-group-color: shift-color($value, $list-group-item-color-scale);
   @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);