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 Aug 24, 2023
1 parent 94a6a8f commit dda7e15
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 @@ -102,6 +102,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 dda7e15

Please sign in to comment.