From 070f776a6186b7fb02a653147af050487fe6317c Mon Sep 17 00:00:00 2001 From: Amirghk Date: Thu, 20 Jun 2024 19:03:52 +0330 Subject: [PATCH] fix(styles): applies nb-for-theme mixin when cssCustomProperties is enabled --- .../theme/styles/core/theming/_install.scss | 15 +++++++++++++-- 1 file changed, 13 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..604e45928b 100644 --- a/src/framework/theme/styles/core/theming/_install.scss +++ b/src/framework/theme/styles/core/theming/_install.scss @@ -11,11 +11,22 @@ @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; + } } } + @mixin nb-for-themes($names...) { @each $name in $names { @include nb-for-theme($name) {