Browse Source

toast dark-mode bug fix

pull/5312/head
Daniel 1 year ago
parent
commit
6bf0643fca
  1. 15
      src/scss/_toasts.scss

15
src/scss/_toasts.scss

@ -1,6 +1,7 @@
//
// Toast
//
@each $name, $color in $theme-colors {
.toast-#{$name} {
--#{$prefix}toast-header-color: #{color-contrast($color)};
@ -16,3 +17,17 @@
}
}
}
@if $enable-dark-mode {
@include color-mode(dark) {
@each $name, $color in $theme-colors {
.toast-#{$name} {
@if color-contrast($color) == $color-contrast-dark {
.btn-close {
--#{$prefix}btn-close-white-filter: none;
}
}
}
}
}
}

Loading…
Cancel
Save