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.
1 parent e121a0a commit cfe5aa3Copy full SHA for cfe5aa3
frontend/utils/themeUtils.ts
@@ -28,7 +28,9 @@ export function setAppBgFromAdminBarBg() {
28
const bitAppsRootElm = select('#bit-apps-root')
29
const wpAdminBarElm = select('#wpadminbar')
30
if (bitAppsRootElm && wpAdminBarElm) {
31
- bitAppsRootElm.style.backgroundColor = globalThis.getComputedStyle(wpAdminBarElm)?.backgroundColor
+ const bgColor = globalThis.getComputedStyle(wpAdminBarElm)?.backgroundColor
32
+ bitAppsRootElm.style.backgroundColor = bgColor
33
+ document.documentElement.style.setProperty('--wp-bg-color', bgColor)
34
}
35
36
0 commit comments