fix(apps): declare color-scheme to allow transparent MCP App iframes (#7479)

This commit is contained in:
Andrew Harvard
2026-02-24 13:50:38 -05:00
committed by GitHub
parent 20166906a5
commit 5e59b4dcb2
3 changed files with 12 additions and 0 deletions
+1
View File
@@ -29,6 +29,7 @@ function applyThemeToDocument(theme: ResolvedTheme): void {
const toRemove = theme === 'dark' ? 'light' : 'dark';
document.documentElement.classList.add(theme);
document.documentElement.classList.remove(toRemove);
document.documentElement.style.colorScheme = theme;
}
// Built once — light-dark() values are theme-independent