Skip to content

Commit

Permalink
chore: Remove unnecessary CSS wrapping (#12021)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabarov authored Oct 26, 2021
1 parent 6356709 commit 4359497
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function generateThemeFile(themeFolder, themeName, themeProperties, productionMo
let themeFile = headerImport;

if (componentsFiles.length > 0) {
themeFile += 'import { css, unsafeCSS, registerStyles } from \'@vaadin/vaadin-themable-mixin/register-styles\';\n';
themeFile += 'import { unsafeCSS, registerStyles } from \'@vaadin/vaadin-themable-mixin/register-styles\';\n';
}

if (themeProperties.parent) {
Expand Down Expand Up @@ -202,9 +202,7 @@ function generateThemeFile(themeFolder, themeName, themeProperties, productionMo
// Don't format as the generated file formatting will get wonky!
const componentString = `registerStyles(
'${tag}',
css\`
\${unsafeCSS(${variable}.toString())}
\`
unsafeCSS(${variable}.toString())
);
`;
componentCssCode.push(componentString);
Expand Down

0 comments on commit 4359497

Please sign in to comment.