Skip to content
Prev Previous commit
Next Next commit
Feedback changes
  • Loading branch information
karthick-murugan committed Sep 25, 2025
commit 0f35cd01c2a16531f8adca7c9e1e30a5dc269f29
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { sanitizeCommentString } from './utils';
* @param {Object} props.thread - The comment thread object.
* @param {string} props.submitButtonText - The text to display on the submit button.
* @param {string?} props.placeholderText - The placeholder text for the comment input.
* @param {string?} props.labelText - The label text for the comment input.
* @param {number?} props.rows - The number of rows for the comment input.
* @return {React.ReactNode} The CommentForm component.
*/
Expand All @@ -38,6 +39,7 @@ function CommentForm( {
thread,
submitButtonText,
placeholderText,
labelText,
rows = 4,
} ) {
const [ inputComment, setInputComment ] = useState(
Expand All @@ -49,7 +51,7 @@ function CommentForm( {
return (
<>
<VisuallyHidden as="label" htmlFor={ inputId }>
{ __( 'Comment' ) }
{ labelText ?? __( 'Comment' ) }
</VisuallyHidden>
<TextareaAutosize
id={ inputId }
Expand Down
36 changes: 0 additions & 36 deletions packages/editor/src/components/collab-sidebar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,42 +43,6 @@
}
}

.editor-collab-sidebar-panel__comment-label {
font-size: 13px;
font-weight: 500;
color: $gray-700;
margin-bottom: $grid-unit-10;
display: block;
// Screen reader only by default
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
// Visible when explicitly shown
&.is-visible {
position: static;
left: auto;
top: auto;
width: auto;
height: auto;
overflow: visible;
}
}

.editor-collab-sidebar-panel__comments-list {
list-style: none;
margin: 0;
padding: 0;
li {
margin-bottom: $grid-unit-20;
&:last-child {
margin-bottom: 0;
}
}
}

.editor-collab-sidebar-panel__child-thread {
margin-top: 15px;
}
Expand Down
Loading