From 3733affd4cf462aab241c59db50303c0b9d33769 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 30 Jun 2017 17:09:50 +0200 Subject: [PATCH] Add aria-label to embed url input. --- blocks/library/embed/index.js | 5 ++++- components/placeholder/index.js | 2 +- components/placeholder/test/index.js | 3 +-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/blocks/library/embed/index.js b/blocks/library/embed/index.js index a346781c68353..3c276048b68df 100644 --- a/blocks/library/embed/index.js +++ b/blocks/library/embed/index.js @@ -138,14 +138,17 @@ function getEmbedBlockSettings( { title, icon, category = 'embed' } ) { } if ( ! html ) { + const label = sprintf( __( '%s URL' ), title ); + return [ controls, - +
setAttributes( { url: event.target.value } ) } />