From d758a7ce3a7b3d0cf21cfb0566d39c5967c4b364 Mon Sep 17 00:00:00 2001 From: jkc07100 Date: Wed, 30 Oct 2024 11:13:31 -0400 Subject: [PATCH] fix: Correct css selector name --- packages/theme-generator/src/cleanup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/theme-generator/src/cleanup.js b/packages/theme-generator/src/cleanup.js index b0ca2db5f..b961fcbbc 100644 --- a/packages/theme-generator/src/cleanup.js +++ b/packages/theme-generator/src/cleanup.js @@ -1,7 +1,7 @@ export default function (inputCSS, themeName) { const strippedCSS = inputCSS.replace(',[data-bs-theme=light]', ''); const compressedRootBlocks = strippedCSS.replaceAll('}:root{', ';'); - const themedCSS = compressedRootBlocks.replace(':root', `:root[data-theme='${themeName}']`); + const themedCSS = compressedRootBlocks.replace(':root', `[data-theme='${themeName}']`); const spacedCSS = themedCSS.replaceAll('}', '}\n\n'); return spacedCSS; }