Skip to content

Commit

Permalink
fix: Correct css selector name
Browse files Browse the repository at this point in the history
  • Loading branch information
KeithClinard committed Oct 30, 2024
1 parent c05f39e commit d758a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/theme-generator/src/cleanup.js
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit d758a7c

Please sign in to comment.