From 81489bd25ff811b4e115fa8170c46c51baf5df0d Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Tue, 12 Feb 2019 08:27:46 -0500 Subject: [PATCH] Restore more specific CSS for paragraph block custom color classes. (#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. --- packages/block-library/src/paragraph/style.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/paragraph/style.scss b/packages/block-library/src/paragraph/style.scss index 10ed6de1b484f..5fe83b763c70c 100644 --- a/packages/block-library/src/paragraph/style.scss +++ b/packages/block-library/src/paragraph/style.scss @@ -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; }