diff --git a/scss/_list-group.scss b/scss/_list-group.scss
index 2943120c22..3c6e53f1ce 100644
--- a/scss/_list-group.scss
+++ b/scss/_list-group.scss
@@ -219,7 +219,7 @@
//
// Add modifier classes to change text and background color on individual items.
// Organizationally, this must come after the `:hover` states.
-@each $state, $value in $alert-colors { // Boosted mod: instead of `@each $state in map-keys($theme-colors)`
+@each $state, $value in $list-group-icons { // Boosted mod: instead of `@each $state in map-keys($theme-colors)`
.list-group-item-#{$state} {
// Boosted mod: no `--#{$prefix}list-group-color`
// Boosted mod: no `--#{$prefix}list-group-bg`
@@ -241,16 +241,8 @@
width: var(--#{$prefix}list-group-item-icon-size);
height: var(--#{$prefix}list-group-item-icon-size);
content: "";
- background-color: var(--#{$prefix}link-color); // Find a better var once we fully implement dark mode ?
- -webkit-mask: no-repeat map-get($alert-icons, $state); // stylelint-disable-line property-no-vendor-prefix
- mask: no-repeat map-get($alert-icons, $state);
- }
-
- &.disabled::after,
- &:disabled::after,
- &.list-group-item-action:active::after,
- &.active::after {
background-color: currentcolor;
+ mask: no-repeat $value;
}
}
}
diff --git a/scss/_variables.scss b/scss/_variables.scss
index 15ed9d2776..7107ef246a 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -393,9 +393,8 @@ $burger-icon: url("data:image/svg+xml,") !default;
$success-icon: url("data:image/svg+xml,") !default;
$info-icon: url("data:image/svg+xml,") !default;
-// $warning-icon: url("data:image/svg+xml,") !default;
-$warning-icon: url("data:image/svg+xml,") !default;
-// $warning-icon: url("data:image/svg+xml,") !default;
+$warning-icon: url("data:image/svg+xml,") !default;
+$warning-icon-filled: url("data:image/svg+xml,") !default;
$danger-icon: url("data:image/svg+xml,") !default;
$add-icon: url("data:image/svg+xml,") !default;
$remove-icon: url("data:image/svg+xml,") !default;
@@ -1957,7 +1956,7 @@ $alert-icons: (
// Create a list for this warning icon to indicate that the mask needs to be replaced by a background image
// Be aware that the background of the icon won't change anymore
// Note: `true` parameter is only used to create a list, it could be empty (e.g. `(escape-svg($warning-icon),)`)
- "warning": (escape-svg($warning-icon), true),
+ "warning": (escape-svg($warning-icon-filled), true),
"danger": var(--#{$prefix}error-icon)
) !default;
$alert-logo-size: add($spacer * .5, 1rem) !default;
@@ -2024,6 +2023,15 @@ $list-group-action-hover-color: var(--#{$prefix}emphasis-color) !default;
$list-group-action-active-color: $list-group-active-color !default; // Boosted mod: instead of `var(--#{$prefix}body-color)`
$list-group-action-active-bg: $list-group-active-bg !default; // Boosted mod: instead of `var(--#{$prefix}secondary-bg)`
+$list-group-icons: (
+ "success": var(--#{$prefix}success-icon),
+ "info": escape-svg($info-icon),
+ "warning": escape-svg($warning-icon),
+ "danger": var(--#{$prefix}error-icon)
+) !default;
+
+// scss-docs-start list-group-dark-variables
+// Boosted mod
$list-group-dark-color: $white !default;
$list-group-dark-bg: $black !default;
$list-group-dark-hover-bg: $gray-900 !default;
@@ -2038,23 +2046,8 @@ $list-group-dark-active-color: $white !default;
$list-group-dark-active-bg: no-repeat linear-gradient(to right, var(--#{$prefix}link-hover-color) 4px, $gray-700 4px) !default;
$list-group-dark-active-border-color: $gray-700 !default;
// End mod
-// scss-docs-end list-group-variables
-
-// scss-docs-start list-group-dark-variables
-$list-group-dark-color: $white !default; // Boosted mod
-$list-group-dark-bg: $black !default; // Boosted mod
-$list-group-dark-border-color: $gray-700 !default; // Boosted mod
-$list-group-dark-action-color: $white !default; // Boosted mod
-$list-group-dark-action-hover-color: $primary !default; // Boosted mod
-$list-group-dark-action-active-color: $black !default; // Boosted mod
-$list-group-dark-action-active-bg: $white !default; // Boosted mod
-$list-group-dark-disabled-color: $gray-700 !default; // Boosted mod
-$list-group-dark-disabled-bg: $list-group-dark-bg !default; // Boosted mod
-$list-group-dark-active-color: $black !default; // Boosted mod
-$list-group-dark-active-bg: $list-group-dark-action-active-bg !default; // Boosted mod
-$list-group-dark-active-border-color: $list-group-dark-active-bg !default; // Boosted mod
// scss-docs-end list-group-dark-variables
-
+// scss-docs-end list-group-variables
// Image thumbnails