From 9426a79a2f7b787bb940062799d2daf3218914d9 Mon Sep 17 00:00:00 2001 From: Gbacc Date: Tue, 13 Feb 2024 17:22:59 +0100 Subject: [PATCH] fix(DS): fix textarea color when on error (#5180) --- .changeset/swift-parents-type.md | 5 +++++ .../src/components/Form/Field/Textarea/Textarea.tsx | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/swift-parents-type.md diff --git a/.changeset/swift-parents-type.md b/.changeset/swift-parents-type.md new file mode 100644 index 00000000000..abcae602f2e --- /dev/null +++ b/.changeset/swift-parents-type.md @@ -0,0 +1,5 @@ +--- +'@talend/design-system': patch +--- + +Design System - Fix on textarea not having color on error state diff --git a/packages/design-system/src/components/Form/Field/Textarea/Textarea.tsx b/packages/design-system/src/components/Form/Field/Textarea/Textarea.tsx index d7833f54a7d..243df84402a 100644 --- a/packages/design-system/src/components/Form/Field/Textarea/Textarea.tsx +++ b/packages/design-system/src/components/Form/Field/Textarea/Textarea.tsx @@ -1,11 +1,12 @@ import { forwardRef, Ref } from 'react'; + +import { useId } from '../../../../useId'; import { FieldPrimitive, FieldPropsPrimitive, TextareaPrimitive, TextareaPrimitiveProps, } from '../../Primitives'; -import { useId } from '../../../../useId'; export type InputTextareaProps = FieldPropsPrimitive & Omit & { children?: string }; @@ -46,6 +47,7 @@ const Textarea = forwardRef((props: InputTextareaProps, ref: Ref );