From a779901c4fba1d8cd32475d8489708c2a134bb9f Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Thu, 14 Feb 2019 08:57:43 -0500 Subject: [PATCH] Remove unused line height style for mce-content-body (#13867) * Remove unused line height style for mce-content-body * 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 - packages/editor/src/editor-styles.scss | 4 ---- 2 files changed, 5 deletions(-) diff --git a/packages/editor/src/components/rich-text/style.scss b/packages/editor/src/components/rich-text/style.scss index c1de17bf6076e3..f731eda5841841 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. 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; -}