From 6bf0643fca76c026b05d4729a442d832e13cea14 Mon Sep 17 00:00:00 2001 From: Daniel <50356015+danny007in@users.noreply.github.com> Date: Thu, 14 Sep 2023 17:48:10 +0530 Subject: [PATCH] toast dark-mode bug fix --- src/scss/_toasts.scss | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/scss/_toasts.scss b/src/scss/_toasts.scss index 88c17274e..14be1ce65 100644 --- a/src/scss/_toasts.scss +++ b/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; + } + } + } + } + } +}