Skip to content

Commit

Permalink
Fix: Heading and paragraph colors not applied inside the cover block. (
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored Oct 4, 2019
1 parent 251bc5c commit 3d7e813
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/block-library/src/cover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,19 @@
h2,
.wp-block-cover-image-text,
.wp-block-cover-text {
color: $white;
font-size: 2em;
line-height: 1.25;
z-index: 1;
margin-bottom: 0;
max-width: $content-width;
padding: $block-padding;
text-align: center;
}

h2:not(.has-text-color),
.wp-block-cover-image-text,
.wp-block-cover-text {
color: $white;
a,
a:hover,
a:focus,
Expand Down Expand Up @@ -130,7 +134,9 @@
h5,
h6,
.wp-block-subhead {
color: inherit;
&:not(.has-text-color) {
color: inherit;
}
}
}

Expand Down

0 comments on commit 3d7e813

Please sign in to comment.