Pārlūkot izejas kodu

Change the primary hover color when the secondary color changes.

Jeffrey Ong 5 gadi atpakaļ
vecāks
revīzija
631c10d540
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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 . ";";
 				}