From 00ec3cab98b517bba728a180a04586058e5dd1dd Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Mon, 28 Jan 2019 17:20:10 +0100 Subject: [PATCH 01/15] Use RichText component in Title block for mobile. This is required to properly intercpet Enter.key on all platforms/keyboards. We decided to move to RichText since all of the work for Enter.key intercept was laready done there per Para and Heading blocks. --- .../src/components/post-title/index.native.js | 36 +++++++++++-------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/packages/editor/src/components/post-title/index.native.js b/packages/editor/src/components/post-title/index.native.js index a06a1c94b4cec..618e32081e231 100644 --- a/packages/editor/src/components/post-title/index.native.js +++ b/packages/editor/src/components/post-title/index.native.js @@ -7,21 +7,24 @@ import { TextInput } from 'react-native'; * WordPress dependencies */ import { Component } from '@wordpress/element'; +import { RichText } from '@wordpress/editor'; import { decodeEntities } from '@wordpress/html-entities'; import { withDispatch } from '@wordpress/data'; import { withFocusOutside } from '@wordpress/components'; import { withInstanceId, compose } from '@wordpress/compose'; +const minHeight = 53; + class PostTitle extends Component { constructor() { super( ...arguments ); - this.onChange = this.onChange.bind( this ); this.onSelect = this.onSelect.bind( this ); this.onUnselect = this.onUnselect.bind( this ); this.state = { isSelected: false, + aztecHeight: 0, }; } @@ -38,10 +41,6 @@ class PostTitle extends Component { this.setState( { isSelected: false } ); } - onChange( title ) { - this.props.onUpdate( title ); - } - render() { const { placeholder, @@ -52,18 +51,25 @@ class PostTitle extends Component { const decodedPlaceholder = decodeEntities( placeholder ); return ( - { + this.props.onUpdate( event.content ); + } } + onContentSizeChange={ ( event ) => { + this.setState( { aztecHeight: event.aztecHeight } ); + } } placeholder={ decodedPlaceholder } - style={ style } - value={ title }> - + value={ title } + onSplit={ this.props.onEnterPress } + > + ); } } From 45f8bde1b98ce77d8922cfca0a95541875558281 Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Mon, 28 Jan 2019 18:27:56 +0100 Subject: [PATCH 02/15] Fix lint --- .../editor/src/components/post-title/index.native.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/editor/src/components/post-title/index.native.js b/packages/editor/src/components/post-title/index.native.js index 618e32081e231..90722aec1a185 100644 --- a/packages/editor/src/components/post-title/index.native.js +++ b/packages/editor/src/components/post-title/index.native.js @@ -1,8 +1,3 @@ -/** - * External dependencies - */ -import { TextInput } from 'react-native'; - /** * WordPress dependencies */ @@ -56,7 +51,7 @@ class PostTitle extends Component { onFocus={ this.onSelect } onBlur={ this.props.onBlur } // always assign onBlur as a props multiline={ false } - style={ [ style , { + style={ [ style, { minHeight: Math.max( minHeight, this.state.aztecHeight ), } ] } onChange={ ( event ) => { @@ -68,7 +63,7 @@ class PostTitle extends Component { placeholder={ decodedPlaceholder } value={ title } onSplit={ this.props.onEnterPress } - > + > ); } From f332203ab95a6b6b34a29727c2b596a274da1e64 Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Wed, 30 Jan 2019 17:12:45 +0100 Subject: [PATCH 03/15] Set font family, weight, and size via RN props for Title, Heading, and Para blocks. --- packages/block-library/src/heading/edit.native.js | 1 + packages/block-library/src/paragraph/edit.native.js | 1 + packages/editor/src/components/post-title/index.native.js | 3 +++ packages/editor/src/components/rich-text/index.native.js | 4 ++++ 4 files changed, 9 insertions(+) diff --git a/packages/block-library/src/heading/edit.native.js b/packages/block-library/src/heading/edit.native.js index 44289a550ce0b..89dfaa0003bbc 100644 --- a/packages/block-library/src/heading/edit.native.js +++ b/packages/block-library/src/heading/edit.native.js @@ -62,6 +62,7 @@ class HeadingEdit extends Component { style={ { minHeight: Math.max( minHeight, this.state.aztecHeight ), } } + fontFamily= { 'serif' } onChange={ ( event ) => { // Create a React Tree from the new HTML const newParaBlock = parse( `<${ tagName }>${ event.content }` )[ 0 ]; diff --git a/packages/block-library/src/paragraph/edit.native.js b/packages/block-library/src/paragraph/edit.native.js index 85183973dddea..9b0ddcb78a3c3 100644 --- a/packages/block-library/src/paragraph/edit.native.js +++ b/packages/block-library/src/paragraph/edit.native.js @@ -99,6 +99,7 @@ class ParagraphEdit extends Component { ...style, minHeight: Math.max( minHeight, this.state.aztecHeight ), } } + fontFamily= { 'serif' } onChange={ ( event ) => { // Create a React Tree from the new HTML const newParaBlock = parse( '

' + event.content + '

' )[ 0 ]; diff --git a/packages/editor/src/components/post-title/index.native.js b/packages/editor/src/components/post-title/index.native.js index 90722aec1a185..7a9f0512223ff 100644 --- a/packages/editor/src/components/post-title/index.native.js +++ b/packages/editor/src/components/post-title/index.native.js @@ -54,6 +54,9 @@ class PostTitle extends Component { style={ [ style, { minHeight: Math.max( minHeight, this.state.aztecHeight ), } ] } + fontFamily= { 'serif' } + fontSize= { 24 } + fontWeight= { 'bold' } onChange={ ( event ) => { this.props.onUpdate( event.content ); } } diff --git a/packages/editor/src/components/rich-text/index.native.js b/packages/editor/src/components/rich-text/index.native.js index 692a51f751810..70f6df032455c 100644 --- a/packages/editor/src/components/rich-text/index.native.js +++ b/packages/editor/src/components/rich-text/index.native.js @@ -385,6 +385,10 @@ export class RichText extends Component { color={ 'black' } maxImagesWidth={ 200 } style={ style } + fontFamily= { this.props.fontFamily } + fontSize= { this.props.fontSize } + fontWeight= { this.props.fontWeight } + fontStyle= { this.props.fontStyle } /> ); From 63586f1044cb0fc71cba38e56879fdd92a3a8e35 Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Wed, 30 Jan 2019 17:43:23 +0100 Subject: [PATCH 04/15] Fix lint --- packages/block-library/src/heading/edit.native.js | 2 +- packages/block-library/src/paragraph/edit.native.js | 2 +- packages/editor/src/components/post-title/index.native.js | 6 +++--- packages/editor/src/components/rich-text/index.native.js | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/block-library/src/heading/edit.native.js b/packages/block-library/src/heading/edit.native.js index 89dfaa0003bbc..627ae0fb2b82d 100644 --- a/packages/block-library/src/heading/edit.native.js +++ b/packages/block-library/src/heading/edit.native.js @@ -62,7 +62,7 @@ class HeadingEdit extends Component { style={ { minHeight: Math.max( minHeight, this.state.aztecHeight ), } } - fontFamily= { 'serif' } + fontFamily={ 'serif' } onChange={ ( event ) => { // Create a React Tree from the new HTML const newParaBlock = parse( `<${ tagName }>${ event.content }` )[ 0 ]; diff --git a/packages/block-library/src/paragraph/edit.native.js b/packages/block-library/src/paragraph/edit.native.js index 9b0ddcb78a3c3..79ea7257c6b7e 100644 --- a/packages/block-library/src/paragraph/edit.native.js +++ b/packages/block-library/src/paragraph/edit.native.js @@ -99,7 +99,7 @@ class ParagraphEdit extends Component { ...style, minHeight: Math.max( minHeight, this.state.aztecHeight ), } } - fontFamily= { 'serif' } + fontFamily={ 'serif' } onChange={ ( event ) => { // Create a React Tree from the new HTML const newParaBlock = parse( '

' + event.content + '

' )[ 0 ]; diff --git a/packages/editor/src/components/post-title/index.native.js b/packages/editor/src/components/post-title/index.native.js index 7a9f0512223ff..ceff3224181ff 100644 --- a/packages/editor/src/components/post-title/index.native.js +++ b/packages/editor/src/components/post-title/index.native.js @@ -54,9 +54,9 @@ class PostTitle extends Component { style={ [ style, { minHeight: Math.max( minHeight, this.state.aztecHeight ), } ] } - fontFamily= { 'serif' } - fontSize= { 24 } - fontWeight= { 'bold' } + fontFamily={ 'serif' } + fontSize={ 24 } + fontWeight={ 'bold' } onChange={ ( event ) => { this.props.onUpdate( event.content ); } } diff --git a/packages/editor/src/components/rich-text/index.native.js b/packages/editor/src/components/rich-text/index.native.js index 70f6df032455c..9a6a324dcb44f 100644 --- a/packages/editor/src/components/rich-text/index.native.js +++ b/packages/editor/src/components/rich-text/index.native.js @@ -385,10 +385,10 @@ export class RichText extends Component { color={ 'black' } maxImagesWidth={ 200 } style={ style } - fontFamily= { this.props.fontFamily } - fontSize= { this.props.fontSize } - fontWeight= { this.props.fontWeight } - fontStyle= { this.props.fontStyle } + fontFamily={ this.props.fontFamily } + fontSize={ this.props.fontSize } + fontWeight={ this.props.fontWeight } + fontStyle={ this.props.fontStyle } /> ); From 06d9f843c066f585d058415b44798eb26b13c15a Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Thu, 31 Jan 2019 10:54:55 +0100 Subject: [PATCH 05/15] Adds font* props to PlainText for mobile --- packages/editor/src/components/plain-text/index.native.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/editor/src/components/plain-text/index.native.js b/packages/editor/src/components/plain-text/index.native.js index 35ffd2782a133..29a4a12b71470 100644 --- a/packages/editor/src/components/plain-text/index.native.js +++ b/packages/editor/src/components/plain-text/index.native.js @@ -47,6 +47,10 @@ export default class PlainText extends Component { } } onFocus={ this.props.onFocus } // always assign onFocus as a props onBlur={ this.props.onBlur } // always assign onBlur as a props + fontFamily={ this.props.fontFamily || 'serif' } + fontSize={ this.props.fontSize } + fontWeight={ this.props.fontWeight } + fontStyle={ this.props.fontStyle } /> ); } From 5a43ea9375a76dab463e1bd8578f939edd3ecc96 Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Thu, 31 Jan 2019 10:55:28 +0100 Subject: [PATCH 06/15] Make `serif` default family for RichText on mobile --- packages/editor/src/components/rich-text/index.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/components/rich-text/index.native.js b/packages/editor/src/components/rich-text/index.native.js index 9a6a324dcb44f..e1f1d4b05cfbb 100644 --- a/packages/editor/src/components/rich-text/index.native.js +++ b/packages/editor/src/components/rich-text/index.native.js @@ -385,7 +385,7 @@ export class RichText extends Component { color={ 'black' } maxImagesWidth={ 200 } style={ style } - fontFamily={ this.props.fontFamily } + fontFamily={ this.props.fontFamily || 'serif' } fontSize={ this.props.fontSize } fontWeight={ this.props.fontWeight } fontStyle={ this.props.fontStyle } From 3f8f97c369bb2c8abe4d5d3d3971af81148f8c0e Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Thu, 31 Jan 2019 11:31:37 +0100 Subject: [PATCH 07/15] Set the correct font family for Image caption on mobile --- packages/block-library/src/image/edit.native.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-library/src/image/edit.native.js b/packages/block-library/src/image/edit.native.js index 6c5fad9b7b05e..cbcb3a03185f2 100644 --- a/packages/block-library/src/image/edit.native.js +++ b/packages/block-library/src/image/edit.native.js @@ -196,6 +196,7 @@ export default class ImageEdit extends React.Component { Date: Thu, 31 Jan 2019 11:32:08 +0100 Subject: [PATCH 08/15] Set the correct font family for Nextpage block on mobile --- packages/block-library/src/nextpage/editor.native.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-library/src/nextpage/editor.native.scss b/packages/block-library/src/nextpage/editor.native.scss index 0e75d4a7595c2..87aa8389f1c7a 100644 --- a/packages/block-library/src/nextpage/editor.native.scss +++ b/packages/block-library/src/nextpage/editor.native.scss @@ -12,4 +12,5 @@ .block-library-nextpage__text { text-decoration-style: solid; + font-family: serif; } From 624b4733ef7e411caced39c8bb9d1236567542e5 Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Thu, 31 Jan 2019 11:32:45 +0100 Subject: [PATCH 09/15] Set the correct font family for Code block on mobile --- packages/block-library/src/code/edit.native.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-library/src/code/edit.native.js b/packages/block-library/src/code/edit.native.js index d4ee2c8071c69..976e94a75e54a 100644 --- a/packages/block-library/src/code/edit.native.js +++ b/packages/block-library/src/code/edit.native.js @@ -36,6 +36,7 @@ export default function CodeEdit( props ) { isSelected={ props.isSelected } onFocus={ onFocus } onBlur={ onBlur } + fontFamily={ 'monospace' } /> ); From 63346cfae68bdc685874f3936e8df3ffe35ef1b0 Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Fri, 1 Feb 2019 11:30:27 +0100 Subject: [PATCH 10/15] set the correct font family for Image caption on mobile --- packages/block-library/src/image/edit.native.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-library/src/image/edit.native.js b/packages/block-library/src/image/edit.native.js index 8ab944d274fe5..9a0503031debd 100644 --- a/packages/block-library/src/image/edit.native.js +++ b/packages/block-library/src/image/edit.native.js @@ -262,6 +262,7 @@ export default class ImageEdit extends React.Component { Date: Fri, 1 Feb 2019 14:15:22 +0100 Subject: [PATCH 11/15] Remove extra fontFamily props. --- packages/block-library/src/heading/edit.native.js | 1 - packages/block-library/src/paragraph/edit.native.js | 1 - packages/editor/src/components/post-title/index.native.js | 1 - 3 files changed, 3 deletions(-) diff --git a/packages/block-library/src/heading/edit.native.js b/packages/block-library/src/heading/edit.native.js index 627ae0fb2b82d..44289a550ce0b 100644 --- a/packages/block-library/src/heading/edit.native.js +++ b/packages/block-library/src/heading/edit.native.js @@ -62,7 +62,6 @@ class HeadingEdit extends Component { style={ { minHeight: Math.max( minHeight, this.state.aztecHeight ), } } - fontFamily={ 'serif' } onChange={ ( event ) => { // Create a React Tree from the new HTML const newParaBlock = parse( `<${ tagName }>${ event.content }` )[ 0 ]; diff --git a/packages/block-library/src/paragraph/edit.native.js b/packages/block-library/src/paragraph/edit.native.js index 79ea7257c6b7e..85183973dddea 100644 --- a/packages/block-library/src/paragraph/edit.native.js +++ b/packages/block-library/src/paragraph/edit.native.js @@ -99,7 +99,6 @@ class ParagraphEdit extends Component { ...style, minHeight: Math.max( minHeight, this.state.aztecHeight ), } } - fontFamily={ 'serif' } onChange={ ( event ) => { // Create a React Tree from the new HTML const newParaBlock = parse( '

' + event.content + '

' )[ 0 ]; diff --git a/packages/editor/src/components/post-title/index.native.js b/packages/editor/src/components/post-title/index.native.js index ceff3224181ff..c793cb4d0a113 100644 --- a/packages/editor/src/components/post-title/index.native.js +++ b/packages/editor/src/components/post-title/index.native.js @@ -54,7 +54,6 @@ class PostTitle extends Component { style={ [ style, { minHeight: Math.max( minHeight, this.state.aztecHeight ), } ] } - fontFamily={ 'serif' } fontSize={ 24 } fontWeight={ 'bold' } onChange={ ( event ) => { From 8b52a1aad49b780f4bea2ea5f9bf448b4bc982c1 Mon Sep 17 00:00:00 2001 From: Diego Rey Mendez Date: Fri, 1 Feb 2019 14:33:16 -0300 Subject: [PATCH 12/15] Remaps some font names so that they work in iOS. (#13628) * Remaps some font names so that they work in iOS. * Improved the logic for picking the default font in some components. * Modifies the logic that sets the default font for the code component. * Changes the font family in a css file. * Adds an import to have a default font for native. * Standardizes the default font for the code component. * Simplifies the default font for the code block. * Simplifies the default font for the code block. * Configures the default font for plain-text from a css file. * Fixes the styling for the rich text components and restores a line that was removed by mistake. * Fixes a linting problem. * Fixes some linting issues. * Fixes a linting issue. --- packages/block-library/src/code/edit.native.js | 2 +- packages/block-library/src/code/theme.android.scss | 4 ---- .../src/code/{theme.ios.scss => theme.native.scss} | 5 ++++- packages/block-library/src/nextpage/editor.native.scss | 4 +++- packages/editor/src/components/plain-text/index.native.js | 2 +- packages/editor/src/components/plain-text/style.native.scss | 3 +++ packages/editor/src/components/rich-text/index.native.js | 3 ++- packages/editor/src/components/rich-text/style.native.scss | 5 +++++ 8 files changed, 19 insertions(+), 9 deletions(-) delete mode 100644 packages/block-library/src/code/theme.android.scss rename packages/block-library/src/code/{theme.ios.scss => theme.native.scss} (56%) create mode 100644 packages/editor/src/components/rich-text/style.native.scss diff --git a/packages/block-library/src/code/edit.native.js b/packages/block-library/src/code/edit.native.js index 976e94a75e54a..c072c01df5004 100644 --- a/packages/block-library/src/code/edit.native.js +++ b/packages/block-library/src/code/edit.native.js @@ -36,7 +36,7 @@ export default function CodeEdit( props ) { isSelected={ props.isSelected } onFocus={ onFocus } onBlur={ onBlur } - fontFamily={ 'monospace' } + fontFamily={ ( styles.blockCode.fontFamily ) } />
); diff --git a/packages/block-library/src/code/theme.android.scss b/packages/block-library/src/code/theme.android.scss deleted file mode 100644 index 18d9c4cdcf2dc..0000000000000 --- a/packages/block-library/src/code/theme.android.scss +++ /dev/null @@ -1,4 +0,0 @@ -.blockCode { - font-family: monospace; -} - diff --git a/packages/block-library/src/code/theme.ios.scss b/packages/block-library/src/code/theme.native.scss similarity index 56% rename from packages/block-library/src/code/theme.ios.scss rename to packages/block-library/src/code/theme.native.scss index c553ba8e275f7..850db82eb0f44 100644 --- a/packages/block-library/src/code/theme.ios.scss +++ b/packages/block-library/src/code/theme.native.scss @@ -1,5 +1,8 @@ /* stylelint-disable font-family-no-missing-generic-family-keyword */ + +@import "variables.scss"; + .blockCode { - font-family: courier; + font-family: $default-monospace-font; } diff --git a/packages/block-library/src/nextpage/editor.native.scss b/packages/block-library/src/nextpage/editor.native.scss index 87aa8389f1c7a..618ba896961be 100644 --- a/packages/block-library/src/nextpage/editor.native.scss +++ b/packages/block-library/src/nextpage/editor.native.scss @@ -1,5 +1,7 @@ // @format +@import "variables.scss"; + .block-library-nextpage__container { align-items: center; padding: 4px 4px 4px 4px; @@ -12,5 +14,5 @@ .block-library-nextpage__text { text-decoration-style: solid; - font-family: serif; + font-family: $default-regular-font; } diff --git a/packages/editor/src/components/plain-text/index.native.js b/packages/editor/src/components/plain-text/index.native.js index 29a4a12b71470..6c137065cf4a8 100644 --- a/packages/editor/src/components/plain-text/index.native.js +++ b/packages/editor/src/components/plain-text/index.native.js @@ -47,7 +47,7 @@ export default class PlainText extends Component { } } onFocus={ this.props.onFocus } // always assign onFocus as a props onBlur={ this.props.onBlur } // always assign onBlur as a props - fontFamily={ this.props.fontFamily || 'serif' } + fontFamily={ ( styles[ 'editor-plain-text' ].fontFamily ) } fontSize={ this.props.fontSize } fontWeight={ this.props.fontWeight } fontStyle={ this.props.fontStyle } diff --git a/packages/editor/src/components/plain-text/style.native.scss b/packages/editor/src/components/plain-text/style.native.scss index 5e0face119c73..b4d0f9effbb4d 100644 --- a/packages/editor/src/components/plain-text/style.native.scss +++ b/packages/editor/src/components/plain-text/style.native.scss @@ -1,4 +1,7 @@ +@import "variables.scss"; + .editor-plain-text { + font-family: $default-regular-font; box-shadow: none; border-width: 0; diff --git a/packages/editor/src/components/rich-text/index.native.js b/packages/editor/src/components/rich-text/index.native.js index e1f1d4b05cfbb..67d2a86b38957 100644 --- a/packages/editor/src/components/rich-text/index.native.js +++ b/packages/editor/src/components/rich-text/index.native.js @@ -28,6 +28,7 @@ import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ +import styles from './style.scss'; const FORMATTING_CONTROLS = [ { @@ -385,7 +386,7 @@ export class RichText extends Component { color={ 'black' } maxImagesWidth={ 200 } style={ style } - fontFamily={ this.props.fontFamily || 'serif' } + fontFamily={ this.props.fontFamily || styles[ 'editor-rich-text' ].fontFamily } fontSize={ this.props.fontSize } fontWeight={ this.props.fontWeight } fontStyle={ this.props.fontStyle } diff --git a/packages/editor/src/components/rich-text/style.native.scss b/packages/editor/src/components/rich-text/style.native.scss new file mode 100644 index 0000000000000..15c1b834a87ef --- /dev/null +++ b/packages/editor/src/components/rich-text/style.native.scss @@ -0,0 +1,5 @@ +@import "variables.scss"; + +.editor-rich-text { + font-family: $default-regular-font; +} From 2a126abc3332d84e5feb2eb60ec77536fee57e45 Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Fri, 1 Feb 2019 19:38:03 +0100 Subject: [PATCH 13/15] Make sure PlainText takes in consideration the fontFamily passed via props before falling back to default styles --- packages/editor/src/components/plain-text/index.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/components/plain-text/index.native.js b/packages/editor/src/components/plain-text/index.native.js index 6c137065cf4a8..b5c3591b22a6c 100644 --- a/packages/editor/src/components/plain-text/index.native.js +++ b/packages/editor/src/components/plain-text/index.native.js @@ -47,7 +47,7 @@ export default class PlainText extends Component { } } onFocus={ this.props.onFocus } // always assign onFocus as a props onBlur={ this.props.onBlur } // always assign onBlur as a props - fontFamily={ ( styles[ 'editor-plain-text' ].fontFamily ) } + fontFamily={ this.props.fontFamily || ( styles[ 'editor-plain-text' ].fontFamily ) } fontSize={ this.props.fontSize } fontWeight={ this.props.fontWeight } fontStyle={ this.props.fontStyle } From 544f096aca48439d3721212ccadc3874c4fe1e27 Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Tue, 5 Feb 2019 17:58:27 +0100 Subject: [PATCH 14/15] Do not use hard coded `fontFamily` value, instead use CSS style. --- packages/block-library/src/image/edit.native.js | 2 +- packages/block-library/src/image/styles.native.scss | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/image/edit.native.js b/packages/block-library/src/image/edit.native.js index 776a033bc441a..590408a5a238a 100644 --- a/packages/block-library/src/image/edit.native.js +++ b/packages/block-library/src/image/edit.native.js @@ -272,7 +272,7 @@ export default class ImageEdit extends React.Component { Date: Tue, 5 Feb 2019 18:36:08 +0100 Subject: [PATCH 15/15] Add missing new line at end of style --- packages/block-library/src/image/styles.native.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/image/styles.native.scss b/packages/block-library/src/image/styles.native.scss index 454885935e95a..88bc1975808cc 100644 --- a/packages/block-library/src/image/styles.native.scss +++ b/packages/block-library/src/image/styles.native.scss @@ -22,4 +22,4 @@ .caption-text { font-family: $default-regular-font; -} \ No newline at end of file +}