Skip to content

Commit

Permalink
fix: remove useless describedby
Browse files Browse the repository at this point in the history
  • Loading branch information
toshusai committed May 24, 2024
1 parent 9af0f8c commit 76d8229
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ exports[`Storybook Tests TextArea AutoHeight 1`] = `
rows={4}
>
<textarea
aria-describedby="test-id"
aria-labelledby="test-id"
className="c7"
id="test-id"
Expand Down Expand Up @@ -648,7 +647,6 @@ exports[`Storybook Tests TextArea Default 1`] = `
rows={4}
>
<textarea
aria-describedby="test-id"
aria-invalid={false}
aria-labelledby="test-id"
className="c7"
Expand Down Expand Up @@ -866,7 +864,6 @@ exports[`Storybook Tests TextArea Disabled 1`] = `
rows={4}
>
<textarea
aria-describedby="test-id"
aria-labelledby="test-id"
className="c7"
id="test-id"
Expand Down Expand Up @@ -1294,7 +1291,6 @@ exports[`Storybook Tests TextArea Label 1`] = `
rows={4}
>
<textarea
aria-describedby="test-id"
aria-labelledby="test-id"
className="c7"
id="test-id"
Expand Down Expand Up @@ -1507,7 +1503,6 @@ exports[`Storybook Tests TextArea Placeholder 1`] = `
rows={4}
>
<textarea
aria-describedby="test-id"
aria-labelledby="test-id"
className="c7"
id="test-id"
Expand Down Expand Up @@ -1721,7 +1716,6 @@ exports[`Storybook Tests TextArea ReadOnly 1`] = `
rows={4}
>
<textarea
aria-describedby="test-id"
aria-labelledby="test-id"
className="c7"
id="test-id"
Expand Down Expand Up @@ -1968,7 +1962,6 @@ exports[`Storybook Tests TextArea Required 1`] = `
rows={4}
>
<textarea
aria-describedby="test-id"
aria-labelledby="test-id"
className="c9"
id="test-id"
Expand Down Expand Up @@ -2190,7 +2183,6 @@ exports[`Storybook Tests TextArea ShowCount 1`] = `
rows={5}
>
<textarea
aria-describedby="test-id"
aria-labelledby="test-id"
className="c7"
id="test-id"
Expand Down Expand Up @@ -2401,7 +2393,6 @@ exports[`Storybook Tests TextArea SubLabel 1`] = `
rows={4}
>
<textarea
aria-describedby="test-id"
aria-labelledby="test-id"
className="c7"
id="test-id"
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/TextArea/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(
rows={showCount ? rows + 1 : rows}
>
<StyledTextarea
aria-describedby={describedbyId}
aria-describedby={showAssistiveText ? describedbyId : undefined}
aria-invalid={props.invalid}
aria-labelledby={labelledbyId}
id={textAreaId}
Expand Down

0 comments on commit 76d8229

Please sign in to comment.