Browse Source

Also add the new color to the JS

Ben Dwyer 4 năm trước cách đây
mục cha
commit
3b4fe51e6c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      varia/inc/color-annotations-preview.js

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

@@ -73,7 +73,7 @@ function changeColorLuminescence( hex, amount ) {
 				var primaryHover = changeColorLuminescence( primary, 10 );
 				var primaryDark = changeColorLuminescence( primary, -10 );
 				cssVariables += '--wp--preset--color--primary: ' + primary + ';' +
-				'--wp--preset--color--primary-hover: ' + primaryHover + ';';
+				'--wp--preset--color--primary-hover: ' + primaryHover + ';' +
 				'--wp--preset--color--primary-dark: ' + primaryDark + ';';
 			}