Skip to content

Commit

Permalink
Remove unused line height style for mce-content-body (#13867)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
kjellr authored and youknowriad committed Mar 6, 2019
1 parent 26c93f7 commit 77a8c18
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/editor/src/components/rich-text/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 0 additions & 4 deletions packages/editor/src/editor-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,3 @@ ul ul,
ol ul {
list-style-type: circle;
}

.mce-content-body {
line-height: $editor-line-height;
}

0 comments on commit 77a8c18

Please sign in to comment.