Skip to content

Commit

Permalink
fix(ffe-core): added :host to generated css files
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hellstrand committed Oct 19, 2023
1 parent 432d6cf commit 0c63444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ffe-core/scripts/lib/renderLessVarsToCSSProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0c63444

Please sign in to comment.