diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000000000..7a73a41bfdf76d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/packages/block-library/src/nextpage/edit.native.js b/packages/block-library/src/nextpage/edit.native.js index 1988d3500cb5df..18206b378e13a1 100644 --- a/packages/block-library/src/nextpage/edit.native.js +++ b/packages/block-library/src/nextpage/edit.native.js @@ -14,20 +14,20 @@ import { __ } from '@wordpress/i18n'; */ import styles from './editor.scss'; -export default function NextPageEdit( { attributes } ) { - const { customText = __( 'Page break' ) } = attributes; - // Setting the font here to keep the CSS linter happy, it was demanding a syntax - // that React Native wasn't able to handle (adding a fallback generic font family). - const textStyle = { - ...styles[ 'block-library-nextpage__text' ], - fontFamily: 'System', - }; +export default function NextPageEdit( { attributes, isSelected, onFocus } ) { + const { customText = __('Page break') } = attributes; + const accessibilityTitle = attributes.customText || ''; return ( - -
+ +
); } diff --git a/packages/block-library/src/nextpage/editor.native.scss b/packages/block-library/src/nextpage/editor.native.scss index 869851fdd37c63..ae6f1f3788df3b 100644 --- a/packages/block-library/src/nextpage/editor.native.scss +++ b/packages/block-library/src/nextpage/editor.native.scss @@ -7,6 +7,7 @@ .block-library-nextpage__text { color: $gray; + font-family: $default-regular-font; text-decoration-style: solid; text-transform: uppercase; }