diff --git a/scripts/css-generator.ts b/scripts/css-generator.ts index 15fff054..98450885 100644 --- a/scripts/css-generator.ts +++ b/scripts/css-generator.ts @@ -164,7 +164,10 @@ function shimThemableMixin(moduleId: string) { return shimModule(themableMixin, { ...themableMixinModule, css(strings: readonly string[], ...values: ReadonlyArray) { - return new CSSResult(moduleId, strings, values); + const result: readonly string[] = moduleId.endsWith('font-icons.js') + ? strings.map((string) => string.replace(/'\\\\([a-z0-9]+)'/g, "'\\$1'")) + : strings; + return new CSSResult(moduleId, result, values); }, registerStyles() {}, unsafeCSS,