diff --git a/packages/editor/src/components/collab-sidebar/comment-form.js b/packages/editor/src/components/collab-sidebar/comment-form.js index 70d5bf7828afad..8d7b967dd25e22 100644 --- a/packages/editor/src/components/collab-sidebar/comment-form.js +++ b/packages/editor/src/components/collab-sidebar/comment-form.js @@ -1,3 +1,8 @@ +/** + * External dependencies + */ +import TextareaAutosize from 'react-autosize-textarea'; + /** * WordPress dependencies */ @@ -5,9 +10,10 @@ import { useState } from '@wordpress/element'; import { __experimentalHStack as HStack, Button, - TextareaControl, + VisuallyHidden, } from '@wordpress/components'; import { _x, __ } from '@wordpress/i18n'; +import { useInstanceId } from '@wordpress/compose'; /** * Internal dependencies @@ -29,16 +35,22 @@ function CommentForm( { onSubmit, onCancel, thread, submitButtonText } ) { thread?.content?.raw ?? '' ); + const inputId = useInstanceId( CommentForm, 'comment-input' ); + return ( <> - + { __( 'Comment' ) } + + + onChange={ ( comment ) => + setInputComment( comment.target.value ) + } + rows={ 4 } + maxRows={ 20 } + >