Skip to content

Commit

Permalink
chore: Remove unnecessary CSS wrapping (#12021) (#12159)
Browse files Browse the repository at this point in the history
Co-authored-by: Mikhail Shabarov <[email protected]>
  • Loading branch information
vaadin-bot and mshabarov authored Oct 27, 2021
1 parent f0e64ba commit 6ca6139
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,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 @@ -250,9 +250,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 6ca6139

Please sign in to comment.