From c950473de32bbd1e5be0ea5b9398a6cac1caa87d Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Wed, 13 Feb 2019 14:39:53 -0500 Subject: [PATCH 1/2] Remove unused line height style for mce-content-body --- packages/editor/src/editor-styles.scss | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/editor/src/editor-styles.scss b/packages/editor/src/editor-styles.scss index d005d0bf844fad..1efafd9445f49a 100644 --- a/packages/editor/src/editor-styles.scss +++ b/packages/editor/src/editor-styles.scss @@ -33,7 +33,3 @@ ul ul, ol ul { list-style-type: circle; } - -.mce-content-body { - line-height: $editor-line-height; -} From eafac985994dc1182453f9095f6a4d24ac36b1f0 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Thu, 14 Feb 2019 08:44:25 -0500 Subject: [PATCH 2/2] Remove unnecessary line-height property for .editor-rich-text-editable This line height can be inherited with no negative effects. Removing this allows for less specific rules, making editor styles a bit easier. --- packages/editor/src/components/rich-text/style.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/editor/src/components/rich-text/style.scss b/packages/editor/src/components/rich-text/style.scss index 097fa156607dde..68df5804788eea 100644 --- a/packages/editor/src/components/rich-text/style.scss +++ b/packages/editor/src/components/rich-text/style.scss @@ -7,7 +7,6 @@ .editor-rich-text__editable { margin: 0; position: relative; - line-height: $editor-line-height; // In HTML, leading and trailing spaces are not visible, and multiple spaces // elsewhere are visually reduced to one space. This rule prevents spaces // from collapsing so all space is visible in the editor and can be removed.