소스 검색

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 ) {