From 578669fc7aaefb8839abc1ec81e0664b3b33ee2f Mon Sep 17 00:00:00 2001 From: alexander-balan-akveo Date: Thu, 25 May 2023 12:08:59 +0300 Subject: [PATCH] fix(styles): applies nb-for-theme mixin when cssCustomProperties mode is enabled (#3183) --- .../theme/styles/core/theming/_install.scss | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/framework/theme/styles/core/theming/_install.scss b/src/framework/theme/styles/core/theming/_install.scss index 1c0e5691f3..b4c144035a 100644 --- a/src/framework/theme/styles/core/theming/_install.scss +++ b/src/framework/theme/styles/core/theming/_install.scss @@ -11,8 +11,18 @@ @use 'register'; @mixin nb-for-theme($name) { - @if (theming-variables.$nb-theme-name == $name) { - @content; + @if (theming-variables.$nb-enable-css-custom-properties) { + @each $theme-name in register.nb-get-enabled-themes() { + @if ($theme-name == $name) { + .nb-theme-#{$theme-name} { + @content; + } + } + } + } @else { + @if (theming-variables.$nb-theme-name == $name) { + @content; + } } }