فهرست منبع

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

danielsmithmichigan 4 سال پیش
والد
کامیت
59b3257578
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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 ) {