From 0c63444a9c07efeb62f94bcd27cdee0da01a42f2 Mon Sep 17 00:00:00 2001 From: Peter Hellstrand Date: Thu, 19 Oct 2023 11:42:28 +0200 Subject: [PATCH] fix(ffe-core): added :host to generated css files --- packages/ffe-core/scripts/lib/renderLessVarsToCSSProps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ffe-core/scripts/lib/renderLessVarsToCSSProps.js b/packages/ffe-core/scripts/lib/renderLessVarsToCSSProps.js index a70fbaf29c..e411987f5c 100644 --- a/packages/ffe-core/scripts/lib/renderLessVarsToCSSProps.js +++ b/packages/ffe-core/scripts/lib/renderLessVarsToCSSProps.js @@ -16,7 +16,7 @@ module.exports = async inputFile => { const { css } = await less.render( `@import '${inputFile}';` + `@props: ${propertyNames.join(', ')};` + - `:root { each(@props, { --@{value}: @@value; }); }`, + `:root, :host { each(@props, { --@{value}: @@value; }); }`, ); return css;