Added a placeholder to the product search block editor (https://github.com/woocommerce/woocommerce-blocks/pull/5122)
* Added a placeholder to the product search block editor to indicate that the user can change the placeholder on the front end * Changed the placeholder to be translatable
This commit is contained in:
parent
5af0d7ddb9
commit
6946750ea3
|
@ -104,6 +104,10 @@ const Edit = ( {
|
||||||
<TextControl
|
<TextControl
|
||||||
className="wc-block-product-search__field input-control"
|
className="wc-block-product-search__field input-control"
|
||||||
value={ placeholder }
|
value={ placeholder }
|
||||||
|
placeholder={ __(
|
||||||
|
'Enter search placeholder text',
|
||||||
|
'woo-gutenberg-products-block'
|
||||||
|
) }
|
||||||
onChange={ ( value ) =>
|
onChange={ ( value ) =>
|
||||||
setAttributes( { placeholder: value } )
|
setAttributes( { placeholder: value } )
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue