Browse Source

Fix for custom colors on atomic

Andres Blanco 4 years ago
parent
commit
0ea9c6a373
1 changed files with 1 additions and 1 deletions
  1. 1 1
      seedlet/inc/wpcom-customize-preview.js

+ 1 - 1
seedlet/inc/wpcom-customize-preview.js

@@ -68,7 +68,7 @@ function changeColorLuminescence( hex, amount ) {
 			var foregroundHighContrast = changeColorLuminescence( foreground, -10 );
 			var foregroundHighContrast = changeColorLuminescence( foreground, -10 );
 			var primaryHover = changeColorLuminescence( primary, 10 );
 			var primaryHover = changeColorLuminescence( primary, 10 );
 			var secondaryHover = changeColorLuminescence( secondary, 10 );
 			var secondaryHover = changeColorLuminescence( secondary, 10 );
-			const extraCSS = ':root {' +
+			const extraCSS = ':root, body {' +
 					'--global--color-background: ' + background + ';' +
 					'--global--color-background: ' + background + ';' +
 					'--global--color-background-high-contrast: ' + background + ';' +
 					'--global--color-background-high-contrast: ' + background + ';' +
 					'--global--color-foreground: ' + foreground + ';' +
 					'--global--color-foreground: ' + foreground + ';' +