Browse Source

Merge pull request #1432 from Automattic/fix/issue-1431

Varia: Make sure link is visible inside media & text block with background
Allan Cole 5 years ago
parent
commit
26526d231d
2 changed files with 5 additions and 5 deletions
  1. 4 4
      varia/sass/blocks/media-text/_editor.scss
  2. 1 1
      varia/style-editor.css

+ 4 - 4
varia/sass/blocks/media-text/_editor.scss

@@ -7,11 +7,11 @@
 			padding-right: #{map-deep-get($config-global, "spacing", "vertical")};
 			padding-left: #{map-deep-get($config-global, "spacing", "vertical")};
 		}
+	}
 
-		&[style*="background-color"]:not(.has-background-background-color) {
-			a {
-				color: currentColor;
-			}
+	&[style*="background-color"]:not(.has-background-background-color) {
+		a {
+			color: currentColor;
 		}
 	}
 }

+ 1 - 1
varia/style-editor.css

@@ -458,7 +458,7 @@ object {
 	}
 }
 
-.wp-block-media-text .block-editor-inner-blocks[style*="background-color"]:not(.has-background-background-color) a {
+.wp-block-media-text[style*="background-color"]:not(.has-background-background-color) a {
 	color: currentColor;
 }