Fix eslint notice in BlockTitle component

This commit is contained in:
Mike Jolley 2021-08-17 17:09:04 +01:00
parent 4420819a1f
commit 976e3d057a
1 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,10 @@ const BlockTitle = ( {
const TagName = `h${ headingLevel }`;
return (
<TagName>
<label className="screen-reader-text" htmlFor={ `block-title-${ instanceId }` }>
<label
className="screen-reader-text"
htmlFor={ `block-title-${ instanceId }` }
>
{ __( 'Block title', 'woo-gutenberg-products-block' ) }
</label>
<PlainText