From 94d48e09dcfb547ad1b142d137a51a378d57077f Mon Sep 17 00:00:00 2001 From: Jorge Bernal Date: Fri, 10 May 2019 13:03:38 +0200 Subject: [PATCH] Improve accessibility on missing block (#15457) * Improve accessibility on missing block * Update packages/block-library/src/missing/edit.native.js Co-Authored-By: koke * Remove unnecessary dot for accessibility label Co-Authored-By: koke --- .../block-library/src/missing/edit.native.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/missing/edit.native.js b/packages/block-library/src/missing/edit.native.js index 838c64d88b56c..970975aa71141 100644 --- a/packages/block-library/src/missing/edit.native.js +++ b/packages/block-library/src/missing/edit.native.js @@ -10,7 +10,7 @@ import { Icon } from '@wordpress/components'; import { coreBlocks } from '@wordpress/block-library'; import { normalizeIconObject } from '@wordpress/blocks'; import { Component } from '@wordpress/element'; -import { __ } from '@wordpress/i18n'; +import { __, sprintf } from '@wordpress/i18n'; /** * Internal dependencies @@ -25,7 +25,20 @@ export default class UnsupportedBlockEdit extends Component { const icon = blockType ? normalizeIconObject( blockType.settings.icon ) : 'admin-plugins'; return ( - + { title }