浏览代码

Varia: cleaning up annotations against wpcom.

Allan Cole 5 年之前
父节点
当前提交
58d2cb8871
共有 2 个文件被更改,包括 142 次插入145 次删除
  1. 92 77
      varia/inc/wpcom-colors.php
  2. 50 68
      varia/inc/wpcom-editor-colors.php

+ 92 - 77
varia/inc/wpcom-colors.php

@@ -1,10 +1,19 @@
 <?php
-/* Custom Colors: Varia */
+/*
+ * Custom Colors: Varia
+ */
 
 // Background Color (White)
 // $config-global--color-background-default
 add_color_rule( 'bg', '#ffffff', array(
 
+	// Background-color
+	array( '.screen-reader-text:focus,
+			body,
+			body .widget_eu_cookie_law_widget #eu-cookie-law,
+			body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept,
+			.main-navigation > div > ul > li > .sub-menu', 'background-color' ),
+
 	// Text-color
 	array( '.a8c-posts-list-item__featured span,
 			.a8c-posts-list__view-all,
@@ -53,13 +62,6 @@ add_color_rule( 'bg', '#ffffff', array(
 			input:hover[type="submit"],
 			input[type="submit"]', 'color' ),
 
-	// Background-color
-	array( '.screen-reader-text:focus,
-			body,
-			body .widget_eu_cookie_law_widget #eu-cookie-law,
-			body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept,
-			.main-navigation > div > ul > li > .sub-menu', 'background-color' ),
-
 	/**
 	 * Utility Classes
 	 */
@@ -75,12 +77,16 @@ add_color_rule( 'bg', '#ffffff', array(
 	// Background-color
 	array( '.has-background-background-color[class]', 'background-color' ),
 
+	// Text-color darkened
+	array( '.has-background-dark-color[class]', 'color', '-1'  ),
+
 	// Background-color darkened
-	array( '.has-background-dark-color[class]', 'color', '-1' ),
 	array( '.has-background-dark-background-color[class]', 'background-color', '-1' ),
 
+	// Text-color lightened
+	array( '.has-background-light-color[class]', 'color', '+1'  ),
+
 	// Background-color lightened
-	array( '.has-background-light-color[class]', 'color', '+1' ),
 	array( '.has-background-light-background-color[class]', 'background-color', '+1' ),
 
 ), __( 'Background Color' ) );
@@ -89,6 +95,20 @@ add_color_rule( 'bg', '#ffffff', array(
 // $config-global--color-primary-default
 add_color_rule( 'link', '#0000ff', array(
 
+	// Background-color
+	array( '.a8c-posts-list-item__featured span,
+			.a8c-posts-list__view-all,
+			.button,
+			.sticky-post,
+			.wp-block-button__link,
+			.wp-block-file .wp-block-file__button,
+			.wp-block-file__button,
+			.wp-block-pullquote.is-style-solid-color,
+			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
+			button,
+			button[data-load-more-btn],
+			input[type="submit"]', 'background-color' ),
+
 	// Text-color
 	array( '.main-navigation a,
 			.main-navigation a:link,
@@ -100,8 +120,41 @@ add_color_rule( 'link', '#0000ff', array(
 			.wp-block-button.is-style-outline.wp-block-button__link,
 			.wp-block-button.is-style-outline.wp-block-button__link:active,
 			.wp-block-newspack-blocks-homepage-articles article .entry-title a,
-			a,
-			.a8c-posts-list__item .a8c-posts-list-item__meta a:active,
+			a', 'color' ),
+
+	// Border color left
+	array( '.wp-block-quote', 'border-left-color' ),
+
+	// Border color right
+	array( '.wp-block-quote[style*="text-align: right"],
+			.wp-block-quote[style*="text-align:right"]', 'border-right-color' ),
+
+	// Background-color with less opacity (dim)
+	array( '.a8c-posts-list__view-all:focus,
+			.a8c-posts-list__view-all:hover,
+			.button:focus,
+			.button:hover,
+			.has-focus.a8c-posts-list__view-all,
+			.has-focus.button,
+			.has-focus.wp-block-button__link,
+			.has-focus.wp-block-file__button,
+			.main-navigation #toggle:focus + #toggle-menu,
+			.wp-block-button__link:focus,
+			.wp-block-button__link:hover,
+			.wp-block-file__button:focus,
+			.wp-block-file__button:hover,
+			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus,
+			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:hover,
+			body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept,
+			button.has-focus,
+			button:focus,
+			button:hover,
+			input.has-focus[type="submit"],
+			input:focus[type="submit"],
+			input:hover[type="submit"]', 'background-color', 0.8 ),
+
+	// Text-color with less opacity (dim)
+	array( '.a8c-posts-list__item .a8c-posts-list-item__meta a:active,
 			.a8c-posts-list__item .a8c-posts-list-item__meta a:hover,
 			.comment-meta .comment-metadata a:active,
 			.comment-meta .comment-metadata a:hover,
@@ -125,52 +178,10 @@ add_color_rule( 'link', '#0000ff', array(
 			.wp-block-newspack-blocks-homepage-articles article .entry-meta a:active,
 			.wp-block-newspack-blocks-homepage-articles article .entry-meta a:hover,
 			.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover,
-			a:hover', 'color' ),
-
-	// Background-color
-	array( '.a8c-posts-list-item__featured span,
-			.a8c-posts-list__view-all,
-			.button,
-			.sticky-post,
-			.wp-block-button__link,
-			.wp-block-file .wp-block-file__button,
-			.wp-block-file__button,
-			.wp-block-pullquote.is-style-solid-color,
-			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
-			button,
-			button[data-load-more-btn],
-			input[type="submit"],
-			.a8c-posts-list__view-all:focus,
-			.a8c-posts-list__view-all:hover,
-			.button:focus,
-			.button:hover,
-			.has-focus.a8c-posts-list__view-all,
-			.has-focus.button,
-			.has-focus.wp-block-button__link,
-			.has-focus.wp-block-file__button,
-			.main-navigation #toggle:focus + #toggle-menu,
-			.wp-block-button__link:focus,
-			.wp-block-button__link:hover,
-			.wp-block-file__button:focus,
-			.wp-block-file__button:hover,
-			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus,
-			body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:hover,
-			body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept,
-			button.has-focus,
-			button:focus,
-			button:hover,
-			input.has-focus[type="submit"],
-			input:focus[type="submit"],
-			input:hover[type="submit"]', 'background-color' ),
-
-	// Border color left
-	array( '.wp-block-quote', 'border-left-color' ),
-
-	// Border color right
-	array( '.wp-block-quote[style*="text-align: right"],
-			.wp-block-quote[style*="text-align:right"]', 'border-right-color' ),
+			a:hover', 'color', 0.8 ),
 
 	// Border-color (forms)
+	// Needs contrast against `bg` with less contrast
 	array( 'input[type="color"]:focus,
 			input[type="date"]:focus,
 			input[type="datetime"]:focus,
@@ -192,12 +203,12 @@ add_color_rule( 'link', '#0000ff', array(
 	 * Utility Classes
 	 */
 
-	// Text-color
-	array( '.has-primary-color[class]', 'color' ),
-
 	// Background-color
 	array( '.has-primary-background-color[class]', 'background-color' ),
 
+	// Text-color
+	array( '.has-primary-color[class]', 'color' ),
+
 ), __( 'Link Color' ) );
 
 // Text Color (Gray)
@@ -252,8 +263,7 @@ add_color_rule( 'txt', '#444444', array(
 			textarea,
 			textarea:focus', 'color', '#ffffff', 8 ),
 
-	// Text-color
-	// Needs contrast against `bg` with less opacity (dim)
+	// Text-color with less opacity (dim)
 	array( '.a8c-posts-list__item .a8c-posts-list-item__meta,
 			.entry-footer,
 			.entry-meta,
@@ -277,15 +287,9 @@ add_color_rule( 'txt', '#444444', array(
 			.wp-block-quote.is-style-large cite,
 			.wp-block-quote.is-style-large footer,
 			.wp-block-video figcaption,
-			figcaption', 'color', '0.8' ),
-
-	// Background-color
-	array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept.has-focus,
-			body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept:focus,
-			body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept:hover,
-			body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),
+			figcaption', 'color', 0.8 ),
 
-	// Border-color
+	// Border-color with less opacity (dim)
 	array( '.wp-block-code,
 			body .widget_eu_cookie_law_widget #eu-cookie-law,
 			input[type="color"],
@@ -304,38 +308,49 @@ add_color_rule( 'txt', '#444444', array(
 			input[type="url"],
 			input[type="week"],
 			select,
-			textarea', 'border-color' ),
+			textarea', 'border-color', 0.8 ),
 
-	// Border-top-color
+	// Border-top-color with less opacity (dim)
 	array( '.comment-list .children > li,
 			.comment-list > li,
-			.wp-block-pullquote', 'border-top-color' ),
+			.wp-block-pullquote', 'border-top-color', 0.8 ),
 
-	// Border-bottom-color
+	// Border-bottom-color with less opacity (dim)
 	array( '.comment-list,
 			.wp-block-pullquote,
 			hr,
-			hr.wp-block-separator', 'border-bottom-color' ),
+			hr.wp-block-separator', 'border-bottom-color', 0.8 ),
+
+	// Background-color
+	array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),
+
+	// Background-color
+	array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept.has-focus,
+			body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept:focus,
+			body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept:hover', 'background-color', 0.8 ),
 
 	/**
 	 * Utility Classes
 	 */
 
-	// Text-color
+	// Foreground
 	array( '.has-foreground-color[class],
 			.has-background-background-color[class],
 			.has-background-dark-background-color[class],
 			.has-background-light-background-color[class]', 'color' ),
-	// Background-color
+
+	// Background
 	array( '.has-foreground-background-color[class]', 'background-color' ),
 
 	// Text-color darkened
 	array( '.has-foreground-dark-color[class]', 'color', '-1' ),
+
 	// Background-color darkened
 	array( '.has-foreground-dark-background-color[class]', 'background-color', '-1' ),
 
 	// Text-color brightened
 	array( '.has-foreground-light-color[class]', 'color', '+2' ),
+
 	// Background-color brightened
 	array( '.has-foreground-light-background-color[class]', 'background-color', '+2' ),
 
@@ -348,8 +363,8 @@ add_color_rule( 'fg1', '#ff0000', array(
 	/**
 	 * Utility Classes
 	 */
+
 	// Text-color
-	// Needs contrast against `bg`
 	array( '.has-secondary-color[class]', 'color' ),
 
 	// Background-color

+ 50 - 68
varia/inc/wpcom-editor-colors.php

@@ -1,9 +1,11 @@
 <?php
-/* Custom Colors: Varia */
+/*
+ * Custom Editor Colors: Varia
+ */
 
 // Background Color (White)
 // $config-global--color-background-default
-add_color_rule( 'bg', '#ffffff', array(
+add_editor_color_rule( 'bg', '#ffffff', array(
 
 	// Background-color
 	array( '#editor .editor-styles-wrapper,
@@ -13,7 +15,6 @@ add_color_rule( 'bg', '#ffffff', array(
 			#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link:hover', 'background-color' ),
 
 	// Text-color
-	// Needs contrast against `link` (primary)
 	array( '#editor .editor-styles-wrapper .button,
 			#editor .editor-styles-wrapper .button.has-focus,
 			#editor .editor-styles-wrapper .button:focus,
@@ -40,40 +41,37 @@ add_color_rule( 'bg', '#ffffff', array(
 			#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover-image-text,
 			#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover-text,
 			#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container,
-			#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color', 'link' ),
+			#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color' ),
 
 	// Background-color
 	array( '#editor .editor-styles-wrapper .wp-block-button__link.has-focus,
 			#editor .editor-styles-wrapper .wp-block-button__link:focus,
-			#editor .editor-styles-wrapper .wp-block-button__link:hover', 'color', 'link', 16 ),
+			#editor .editor-styles-wrapper .wp-block-button__link:hover', 'color', 0.8 ),
 
 	/**
 	 * Utility Classes
 	 */
-	// Text-color
-	// Needs contrast against `link` (primary)
-	array( '#editor .editor-styles-wrapper .has-primary-background-color[class]', 'color', 'link' ),
-	// Text-color
-	// Needs contrast against `fg1` (secondary)
-	array( '#editor .editor-styles-wrapper .has-secondary-background-color[class]', 'color', 'fg1' ),
 
 	// Text-color
-	// Needs contrast against `txt` (foreground)
-	array( '#editor .editor-styles-wrapper .has-foreground-background-color[class],
+	array( '#editor .editor-styles-wrapper .has-primary-background-color[class],
+			#editor .editor-styles-wrapper .has-secondary-background-color[class],
+			#editor .editor-styles-wrapper .has-foreground-background-color[class],
 			#editor .editor-styles-wrapper .has-foreground-dark-background-color[class],
-			#editor .editor-styles-wrapper .has-foreground-light-background-color[class]', 'color', 'txt', 12 ),
-	// Text-color
-	// Needs contrast against `txt` (background)
-	array( '#editor .editor-styles-wrapper .has-background-color[class],
-			#editor .editor-styles-wrapper .has-background-dark-color[class],
-			#editor .editor-styles-wrapper .has-background-light-color[class],
-			#editor .editor-styles-wrapper .has-background-background-color[class],
-			#editor .editor-styles-wrapper .has-background-dark-background-color[class],
-			#editor .editor-styles-wrapper .has-background-light-background-color[class]', 'color', 'bg', 12 ),
+			#editor .editor-styles-wrapper .has-foreground-light-background-color[class],
+			#editor .editor-styles-wrapper .has-background-color[class]', 'color' ),
+
 	// Background-color
 	array( '#editor .editor-styles-wrapper .has-background-background-color[class]', 'background-color' ),
+
+	// Text-color darkened
+	array( '#editor .editor-styles-wrapper .has-background-dark-color[class]', 'color', '-1'  ),
+
 	// Background-color darkened
 	array( '#editor .editor-styles-wrapper .has-background-dark-background-color[class]', 'background-color', '-1' ),
+
+	// Text-color lightened
+	array( '#editor .editor-styles-wrapper .has-background-light-color[class]', 'color', '+1'  ),
+
 	// Background-color lightened
 	array( '#editor .editor-styles-wrapper .has-background-light-background-color[class]', 'background-color', '+1' ),
 
@@ -81,7 +79,7 @@ add_color_rule( 'bg', '#ffffff', array(
 
 // Link Color (Blue)
 // $config-global--color-primary-default
-add_color_rule( 'link', '#0000ff', array(
+add_editor_color_rule( 'link', '#0000ff', array(
 
 	// Background-color
 	array( '#editor .editor-styles-wrapper .button,
@@ -91,26 +89,22 @@ add_color_rule( 'link', '#0000ff', array(
 			#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ),
 
 	// Text-color
-	// Needs contrast against `bg`
 	array( '#editor .editor-styles-wrapper .fse-template-part .main-navigation a,
 			#editor .editor-styles-wrapper .fse-template-part .main-navigation a:link,
 			#editor .editor-styles-wrapper .fse-template-part .main-navigation a:visited,
 			#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link,
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
 			#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline,
-			#editor .editor-styles-wrapper a', 'color', 'bg' ),
+			#editor .editor-styles-wrapper a', 'color' ),
 
 	// Border color left
-	// Needs contrast against `bg`
-	array( '#editor .editor-styles-wrapper .wp-block-quote', 'border-left-color', 'bg' ),
+	array( '#editor .editor-styles-wrapper .wp-block-quote', 'border-left-color' ),
 
 	// Border color right
-	// Needs contrast against `bg`
 	array( '#editor .editor-styles-wrapper .wp-block-quote[style*="text-align: right"],
-			#editor .editor-styles-wrapper .wp-block-quote[style*="text-align:right"]', 'border-right-color', 'bg' ),
+			#editor .editor-styles-wrapper .wp-block-quote[style*="text-align:right"]', 'border-right-color' ),
 
 	// Background-color
-	// Needs contrast against `bg` with less contrast
 	array( '#editor .editor-styles-wrapper .button.has-focus,
 			#editor .editor-styles-wrapper .button:focus,
 			#editor .editor-styles-wrapper .button:hover,
@@ -123,10 +117,9 @@ add_color_rule( 'link', '#0000ff', array(
 			#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .has-focus.button,
 			#editor .editor-styles-wrapper .wp-block-button__link.has-focus,
 			#editor .editor-styles-wrapper .wp-block-button__link:focus,
-			#editor .editor-styles-wrapper .wp-block-button__link:hover', 'background-color', 'bg', 3 ),
+			#editor .editor-styles-wrapper .wp-block-button__link:hover', 'background-color', 0.8 ),
 
 	// Text-color
-	// Needs contrast against `bg` with less contrast
 	array( '#editor .editor-styles-wrapper .fse-template-part .main-navigation a:hover,
 			#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link.has-focus,
 			#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link:focus,
@@ -141,35 +134,32 @@ add_color_rule( 'link', '#0000ff', array(
 			#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline.has-focus,
 			#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:focus,
 			#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:hover,
-			#editor .editor-styles-wrapper a:hover', 'color', 'bg', 3 ),
+			#editor .editor-styles-wrapper a:hover', 'color', 0.8 ),
 
 	/**
 	 * Utility Classes
 	 */
+
 	// Background-color
 	array( '#editor .editor-styles-wrapper .has-primary-background-color[class]', 'background-color' ),
+
 	// Text-color
-	// Needs contrast against `bg`
-	array( '#editor .editor-styles-wrapper .has-primary-color[class]', 'color', 'bg' ),
+	array( '#editor .editor-styles-wrapper .has-primary-color[class]', 'color' ),
 
 ), __( 'Link Color' ) );
 
 // Text Color (Gray)
 // $config-global--color-foreground-default
-add_color_rule( 'txt', '#444444', array(
-
-	// Background-color
-	// array( '', 'background-color' ),
+add_editor_color_rule( 'txt', '#444444', array(
 
 	// Text-color
-	// Needs contrast against `bg` with more contrast
 	array( '#editor .editor-post-title__block .editor-post-title__input,
 			#editor .editor-styles-wrapper .fse-template-part .main-navigation,
+			#editor .editor-styles-wrapper,
 			#editor .editor-styles-wrapper .wp-block-pullquote,
-			#editor .editor-styles-wrapper', 'color', 'bg', 7 ),
+			#editor .editor-styles-wrapper hr.wp-block-separator.is-style-dots:before', 'color' ),
 
-	// Text-color
-	// Needs contrast against `bg` with less contrast (dim)
+	// Text-color with less opacity (dim)
 	array( '#editor .editor-styles-wrapper .a8c-posts-list__item .a8c-posts-list-item__meta,
 			#editor .editor-styles-wrapper .wp-block-image figcaption,
 			#editor .editor-styles-wrapper .wp-block-latest-comments .wp-block-latest-comments__comment-date,
@@ -189,48 +179,40 @@ add_color_rule( 'txt', '#444444', array(
 			#editor .editor-styles-wrapper .wp-block-quote.is-style-large cite,
 			#editor .editor-styles-wrapper .wp-block-quote.is-style-large footer,
 			#editor .editor-styles-wrapper .wp-block-video figcaption,
-			#editor .editor-styles-wrapper figcaption', 'color', 'bg', 4 ),
+			#editor .editor-styles-wrapper figcaption', 'color', 0.8 ),
 
-	// Border-color
-	// Needs contrast against `bg` with more contrast
-	array( '#editor .editor-styles-wrapper .wp-block-code', 'border-color', 'bg', 7 ),
+	// Border-color with less opacity (dim)
+	array( '#editor .editor-styles-wrapper .wp-block-code', 'border-color', 0.8 ),
 
-	// Border-top-color
-	// Needs contrast against `bg` with more contrast
-	array( '#editor .editor-styles-wrapper .wp-block-pullquote', 'border-top-color', 'bg', 7 ),
+	// Border-top-color with less opacity (dim)
+	array( '#editor .editor-styles-wrapper .wp-block-pullquote', 'border-top-color', 0.8 ),
 
-	// Border-bottom-color
-	// Needs contrast against `bg` with more contrast
+	// Border-bottom-color with less opacity (dim)
 	array( '#editor .editor-styles-wrapper .wp-block-pullquote,
-			#editor .editor-styles-wrapper .wp-block-separator', 'border-bottom-color', 'bg', 7 ),
-
-	// Text-color
-	// Needs contrast against `bg` with more contrast
-	array( '#editor .editor-styles-wrapper hr.wp-block-separator.is-style-dots:before', 'color', 'bg', 7 ),
-
-	// Background-color
-	// Needs contrast against `bg` with more contrast
-	// array( '', 'background-color', 'bg', 7 ),
+			#editor .editor-styles-wrapper .wp-block-separator', 'border-bottom-color', 0.8 ),
 
 	/**
 	 * Utility Classes
 	 */
-	// Foreground
-	// Needs contrast against `bg`
-	array( '#editor .editor-styles-wrapper .has-foreground-color[class]', 'color', 'bg' ),
 
+	// Text-color
 	array( '#editor .editor-styles-wrapper .has-background-background-color[class],
 			#editor .editor-styles-wrapper .has-background-dark-background-color[class],
 			#editor .editor-styles-wrapper .has-background-light-background-color[class],
-			#editor .editor-styles-wrapper .has-foreground-background-color[class]', 'background-color' ),
+			#editor .editor-styles-wrapper .has-foreground-color[class]', 'color' ),
+
+	// Background-color
+	array( '#editor .editor-styles-wrapper .has-foreground-background-color[class]', 'background-color' ),
 
 	// Text-color darkened
 	array( '#editor .editor-styles-wrapper .has-foreground-dark-color[class]', 'color', '-1' ),
+
 	// Background-color darkened
 	array( '#editor .editor-styles-wrapper .has-foreground-dark-background-color[class]', 'background-color', '-1' ),
 
 	// Text-color brightened
 	array( '#editor .editor-styles-wrapper .has-foreground-light-color[class]', 'color', '+2' ),
+
 	// Background-color brightened
 	array( '#editor .editor-styles-wrapper .has-foreground-light-background-color[class]', 'background-color', '+2' ),
 
@@ -238,14 +220,14 @@ add_color_rule( 'txt', '#444444', array(
 
 // Accent Color (Red)
 // $config-global--color-secondary-default
-add_color_rule( 'fg1', '#ff0000', array(
+add_editor_color_rule( 'fg1', '#ff0000', array(
 
 	/**
 	 * Utility Classes
 	 */
+
 	// Text-color
-	// Needs contrast against `bg`
-	array( '#editor .editor-styles-wrapper .has-secondary-color[class]', 'color', 'bg' ),
+	array( '#editor .editor-styles-wrapper .has-secondary-color[class]', 'color' ),
 
 	// Background-color
 	array( '#editor .editor-styles-wrapper .has-secondary-background-color[class]', 'background-color' ),