Skip to content

Commit

Permalink
Restore more specific CSS for paragraph block custom color classes.
Browse files Browse the repository at this point in the history
This extra specificity was removed in #13025, but should be restored because other blocks (buttons, pullquotes, etc),  use the `has-background` and `has-text-color` classes. We don't want the styles here to interfere.

Using a `p` selector here, rather than something like `.wp-block-paragraph` so that this gets picked up correctly on the front-end as well.
  • Loading branch information
kjellr committed Feb 11, 2019
1 parent a658eae commit 823871f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/paragraph/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
padding-top: $block-padding;
}

.has-background {
p.has-background {
padding: 20px 30px;
}

.has-text-color a {
p.has-text-color a {
color: inherit;
}

0 comments on commit 823871f

Please sign in to comment.