From fc6c0c58f6d9a3b4ce2f868ae1164fe673acefd6 Mon Sep 17 00:00:00 2001 From: Tobias Barsnes Date: Fri, 19 Apr 2024 09:29:47 +0200 Subject: [PATCH] style(Textarea): add missing error border (#1853) Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- packages/react/src/components/form/Textarea/Textarea.stories.tsx | 1 + packages/react/src/components/form/Textarea/Textarea.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/react/src/components/form/Textarea/Textarea.stories.tsx b/packages/react/src/components/form/Textarea/Textarea.stories.tsx index 59e93d7aa5..3263923d4e 100644 --- a/packages/react/src/components/form/Textarea/Textarea.stories.tsx +++ b/packages/react/src/components/form/Textarea/Textarea.stories.tsx @@ -20,6 +20,7 @@ export const Preview: Story = { size: 'medium', description: '', error: '', + hideLabel: false, cols: 40, }, }; diff --git a/packages/react/src/components/form/Textarea/Textarea.tsx b/packages/react/src/components/form/Textarea/Textarea.tsx index 898abd6551..21d5de11b7 100644 --- a/packages/react/src/components/form/Textarea/Textarea.tsx +++ b/packages/react/src/components/form/Textarea/Textarea.tsx @@ -83,6 +83,7 @@ export const Textarea = forwardRef( classes.formField, textareaProps.disabled && classes.disabled, readOnly && classes.readonly, + hasError && classes.error, className, )} >