Explorar el Código

Change the primary hover color when the secondary color changes.

Jeffrey Ong hace 5 años
padre
commit
631c10d540
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      seedlet/classes/class-seedlet-custom-colors.php

+ 1 - 0
seedlet/classes/class-seedlet-custom-colors.php

@@ -231,6 +231,7 @@ class Seedlet_Custom_Colors {
 				}
 
 				if ( $theme_mod_variable_name === '--global--color-secondary' && $theme_mod_default_color !== $theme_mod_custom_color ) {
+					$theme_css .= "--global--color-primary-hover: " . $adjusted_color . ";"; // Since the default palette uses --global--color-secondary as its primary hover color, we need to change the primary hover color when a user selects a different secondary color
 					$theme_css .= "--global--color-secondary-hover: " . $adjusted_color . ";";
 				}