From 6ca61393e5457cffc9490775a3228864779086ad Mon Sep 17 00:00:00 2001 From: Vaadin Bot Date: Wed, 27 Oct 2021 13:14:07 +0300 Subject: [PATCH] chore: Remove unnecessary CSS wrapping (#12021) (#12159) Co-authored-by: Mikhail Shabarov <61410877+mshabarov@users.noreply.github.com> --- .../plugins/application-theme-plugin/theme-generator.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js b/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js index ffe6bcdd28a..d864ae97d6b 100644 --- a/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js +++ b/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js @@ -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) { @@ -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);