Browse Source

Merge pull request #2232 from Automattic/fix/rivington_custom_color_schemes

#2169 - fixes the issue with the cover block styles mismatch.
Jeffrey Pearce 5 years ago
parent
commit
62eeea5074
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rivington/inc/wpcom-colors.php

+ 2 - 2
rivington/inc/wpcom-colors.php

@@ -264,8 +264,8 @@ add_color_rule( 'txt', '#f2f2f2', array(
 			.site-header .main-navigation > div > ul > li:hover li > a', 'color' ),
 			.site-header .main-navigation > div > ul > li:hover li > a', 'color' ),
 
 
 	// Background-color
 	// Background-color
-	array( '.wp-block-cover.has-background-dim,
-			.wp-block-cover-image.has-background-dim,
+	array( '.wp-block-cover.has-background-dim:not([class*="background-color"]),
+			.wp-block-cover-image.has-background-dim:not([class*="background-color"]),
 			.has-foreground-background-color[class],
 			.has-foreground-background-color[class],
 			table.is-style-stripes tbody tr:nth-child(odd),
 			table.is-style-stripes tbody tr:nth-child(odd),
 			.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
 			.wp-block-table.is-style-stripes tbody tr:nth-child(odd),