Skip to content

Commit

Permalink
Set minHeight based on fontSize or style. (#14344)
Browse files Browse the repository at this point in the history
* Set minHeight based on fontSize or style.

* Only use the styles to set the min-height.
  • Loading branch information
SergioEstevao authored and etoledom committed Mar 8, 2019
1 parent 60fbafb commit 8f82fd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/components/rich-text/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ export class RichText extends Component {

this.lastEventCount = undefined; // force a refresh on the native side
}
let minHeight = 0;
let minHeight = styles[ 'editor-rich-text' ].minHeight;
if ( style && style.minHeight ) {
minHeight = style.minHeight;
}
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/components/rich-text/style.native.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
.editor-rich-text {
font-family: $default-regular-font;
text-decoration-color: $gray;
min-height: $min-height-paragraph;
}

0 comments on commit 8f82fd3

Please sign in to comment.