Explorar o código

Stratford/Varia: Fixed an issue preventing customizer color choices from being shown while customizer is open

danielsmithmichigan %!s(int64=4) %!d(string=hai) anos
pai
achega
59b3257578
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      varia/inc/color-annotations-preview.js

+ 1 - 1
varia/inc/color-annotations-preview.js

@@ -91,7 +91,7 @@ function changeColorLuminescence( hex, amount ) {
 				'--wp--preset--color--border-high-contrast: ' + borderHighContrast + ';';
 			}
 
-			const extraCSS = ':root {' + cssVariables + '}';
+			const extraCSS = ':root body {' + cssVariables + '}';
 
 			// Append an extra style element that overrides the previous extra CSS
 			if ( $('#custom-colors-extra-css').length ) {