From d5a23388725927be1a62d2a80c5543b07c4d896f Mon Sep 17 00:00:00 2001 From: Marty Helmick Date: Fri, 8 Feb 2019 14:40:18 -0500 Subject: [PATCH] Make p tag "go with the flow". (#12998) This commit sets the `p` tag to inherit whatever `font-size` and `line-height` are set on the `body` i.e., `.editor-styles-wrapper`. Currently the `p` tag here overrides a theme's most basic of font styles unless `font-size` and `line-height` are set on `p` in that theme. And from what I've seen, being that specific on `p` is an uncommon pattern. This also makes it easier and requires less specificity to style paragraphs on a per block basis by simply adding the font-size to the block container. --- packages/editor/src/editor-styles.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/editor-styles.scss b/packages/editor/src/editor-styles.scss index 6715bd4d0c987..d005d0bf844fa 100644 --- a/packages/editor/src/editor-styles.scss +++ b/packages/editor/src/editor-styles.scss @@ -6,8 +6,8 @@ body { } p { - font-size: $editor-font-size; - line-height: $editor-line-height; + font-size: inherit; + line-height: inherit; } ul,