Browse Source

Leven color annotations

Maggie Cabrera 4 years ago
parent
commit
b3c16f0d30
2 changed files with 13 additions and 0 deletions
  1. 8 0
      leven/inc/wpcom-colors.php
  2. 5 0
      leven/inc/wpcom-editor-colors.php

+ 8 - 0
leven/inc/wpcom-colors.php

@@ -15,6 +15,10 @@ add_color_rule( 'bg', '#f7f7f6', array(
 	// Text-color
 	array( '.a8c-posts-list-item__featured span,
 			.sticky-post,
+			.wp-block-search .wp-block-search__button,
+			.wp-block-search .wp-block-search__button:hover,
+			.wp-block-search .wp-block-search__button:not(.has-background):hover,
+			.wp-block-search .wp-block-search__button:focus,
 			.button,
 			button,
 			button[data-load-more-btn],
@@ -121,6 +125,10 @@ add_color_rule( 'link', '#ff302c', array(
 			.wp-block-file__button,
 			.wp-block-pullquote.is-style-solid-color,
 			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
+			.wp-block-search .wp-block-search__button,
+			.wp-block-search .wp-block-search__button:hover,
+			.wp-block-search .wp-block-search__button:not(.has-background):hover,
+			.wp-block-search .wp-block-search__button:focus,
 			button,
 			button[data-load-more-btn],
 			input[type="submit"]', 'background-color' ),

+ 5 - 0
leven/inc/wpcom-editor-colors.php

@@ -13,6 +13,7 @@ add_editor_color_rule( 'bg', '#f7f7f6', array(
 	// Text-color
 	array( '#editor .editor-styles-wrapper .wp-block-button__link:not(.has-text-color),
 			#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color),
+			#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button,
 			#editor .editor-styles-wrapper .wp-block-cover,
 			#editor .editor-styles-wrapper .wp-block-cover-image,
 			#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .block-editor-block-list__block,
@@ -96,6 +97,10 @@ add_editor_color_rule( 'link', '#ff302c', array(
 
 	// Background-color
 	array( '#editor .editor-styles-wrapper .button,
+			#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button,
+			#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button:hover,
+			#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button:not(.has-background):hover,
+			#editor .editor-styles-wrapper .wp-block-search .wp-block-search__button:focus,
 			#editor .editor-styles-wrapper .fse-template-part .main-navigation .button,
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button,
 			#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link,