Skip to content

Commit a6aab95

Browse files
(Textarea): add attributes to the static Text, following Input
1 parent 4dc475d commit a6aab95

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/scripts/Textarea.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ export const Textarea = createFC<TextareaProps, { isFormElement: boolean }>(
6363
const errorId = useId();
6464
const taClassNames = classnames(className, 'slds-textarea');
6565
const textareaElem = readOnly ? (
66-
<Text type='regular' category='body'>
66+
<Text
67+
id={id}
68+
type='regular'
69+
category='body'
70+
className='slds-form-element__static'
71+
>
6772
{rprops.value}
6873
</Text>
6974
) : (

0 commit comments

Comments
 (0)