Skip to content

Commit 305e3cd

Browse files
authored
Pass aria-labelledby to TextArea component (#2149)
1 parent 1a8e01e commit 305e3cd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/famous-olives-suffer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@leafygreen-ui/text-area': patch
3+
---
4+
5+
aria-labelledby is now correctly passed to the textarea

packages/text-area/src/TextArea/TextArea.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export const TextArea: TextArea = forwardRef<
129129
)}
130130
<textarea
131131
{...rest}
132+
aria-labelledby={ariaLabelledby}
132133
ref={forwardedRef}
133134
title={label != null ? label : undefined}
134135
id={id}

0 commit comments

Comments
 (0)