Skip to content

Commit 801caa7

Browse files
authored
Merge pull request xch-dev#659 from xch-dev/fix-backdrop-again
Fix backdrop again
2 parents 15e4442 + 866d13c commit 801caa7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/theme.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,11 @@ export function applyTheme(theme: Theme, root: HTMLElement) {
384384
if (value && typeof value === 'string') {
385385
const cssVar = `--sidebar-${property.replace(/([A-Z])/g, '-$1').toLowerCase()}`;
386386
root.style.setProperty(cssVar, value, 'important');
387+
388+
if (property === 'backdropFilter') {
389+
const webkitCssVar = `${cssVar}-webkit`;
390+
root.style.setProperty(webkitCssVar, value, 'important');
391+
}
387392
}
388393
});
389394
}

0 commit comments

Comments
 (0)