Selaa lähdekoodia

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

danielsmithmichigan 4 vuotta sitten
vanhempi
commit
59b3257578
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 ) {