From eab27ae9720f8f08fb63f279ec4a9201cc5b0f03 Mon Sep 17 00:00:00 2001 From: Joaquin Pereyra Date: Thu, 3 Jul 2025 23:28:19 -0300 Subject: [PATCH] FIX: bug, themed class only is added to sheet when have a theme what ovveride the world theme --- styles/less/utils/mixin.less | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/styles/less/utils/mixin.less b/styles/less/utils/mixin.less index c9f9f968..c30a5535 100644 --- a/styles/less/utils/mixin.less +++ b/styles/less/utils/mixin.less @@ -4,15 +4,19 @@ * @param {Rules} @lightRules - Styles to apply when `.theme-light` is present */ .appTheme(@darkRules, @lightRules) { - .themed { - &.theme-dark .application.sheet.dh-style, - &.theme-dark.application.sheet.dh-style { - @darkRules(); + // Dark theme selectors + .themed.theme-dark .application.sheet.dh-style, + .themed.theme-dark.application.sheet.dh-style, + body.theme-dark .application, + body.theme-dark.application { + @darkRules(); } - &.theme-light .application.sheet.dh-style, - &.theme-light.application.sheet.dh-style { - @lightRules(); + // Light theme selectors + .themed.theme-light .application.sheet.dh-style, + .themed.theme-light.application.sheet.dh-style, + body.theme-light .application, + body.theme-light.application { + @lightRules(); } - } }