We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Light
light
1 parent 3dde039 commit d10ac7cCopy full SHA for d10ac7c
src/utils/exportUtils/exportCSS.ts
@@ -39,7 +39,8 @@ function mutateCssText(css: string): string {
39
const getExportCSS = async (usedClasses: Set<string>): Promise<string> => {
40
// only include bundle.css and the data-mx-theme=light styling
41
const stylesheets = Array.from(document.styleSheets).filter(s => {
42
- return s.href?.endsWith("bundle.css") || (s.ownerNode as HTMLStyleElement).dataset.mxTheme === "light";
+ return s.href?.endsWith("bundle.css") ||
43
+ (s.ownerNode as HTMLStyleElement).dataset.mxTheme.toLowerCase() === "light";
44
});
45
46
let css = "";
0 commit comments