Skip to content

Commit

Permalink
fix: use list-group variable instead of alert (#33658)
Browse files Browse the repository at this point in the history
Use $list-group-item-color-scale variable in list-group NOT $alert-color-scale
  • Loading branch information
monab committed Apr 17, 2021
1 parent 69f5c01 commit 6fc74eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scss/_list-group.scss
Expand Up @@ -166,7 +166,7 @@
$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);
Expand Down

0 comments on commit 6fc74eb

Please sign in to comment.