Skip to content

Commit

Permalink
fix: remove testing labels
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmch committed Sep 5, 2023
1 parent 23b0c76 commit 8d6d45c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/controls/TextArea/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const TextArea = React.forwardRef<HTMLSpanElement, TextAreaProps>(functio
controlProps: {
...controlProps,
'aria-describedby': ariaDescribedBy,
'aria-invalid': controlProps?.['aria-invalid'] ?? Boolean(error),
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const fixConsoleErrors = {
};

const DefaultTemplate: StoryFn<TextAreaProps> = (args) => (
<TextArea {...fixConsoleErrors} {...args} error={'Some error'} note={'Some note'} />
<TextArea {...fixConsoleErrors} {...args} />
);
export const Default = DefaultTemplate.bind({});

Expand Down

0 comments on commit 8d6d45c

Please sign in to comment.