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
…13821)

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 authored and youknowriad committed Mar 6, 2019
1 parent 29603e9 commit 81489bd
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 81489bd

Please sign in to comment.