From ae55374841bf0787cc73ff3966d994d79c1ae671 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 14 Nov 2024 17:26:14 +0200 Subject: [PATCH] prevent global override to affecting preview-block --- src/services/style_setter/style_setter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/style_setter/style_setter.js b/src/services/style_setter/style_setter.js index 73779cfb..d773a353 100644 --- a/src/services/style_setter/style_setter.js +++ b/src/services/style_setter/style_setter.js @@ -219,8 +219,9 @@ export const applyConfig = (input, i18n) => { styleSheet.toString() styleSheet.insertRule(`:root { ${rules} }`, 'index-max') + // TODO find a way to make this not apply to theme previews if (Object.prototype.hasOwnProperty.call(config, 'forcedRoundness')) { - styleSheet.insertRule(` * { + styleSheet.insertRule(` *:not(.preview-block) { --roundness: var(--forcedRoundness) !important; }`, 'index-max') }