Skip to content

Commit

Permalink
fix(DS): fix textarea color when on error (#5180)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gbacc authored Feb 13, 2024
1 parent 7c4f1e1 commit 9426a79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/swift-parents-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/design-system': patch
---

Design System - Fix on textarea not having color on error state
Original file line number Diff line number Diff line change
@@ -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<TextareaPrimitiveProps, 'className' | 'styles'> & { children?: string };
Expand Down Expand Up @@ -46,6 +47,7 @@ const Textarea = forwardRef((props: InputTextareaProps, ref: Ref<HTMLTextAreaEle
id={fieldID}
name={name}
ref={ref}
hasError={hasError || false}
/>
</FieldPrimitive>
);
Expand Down

0 comments on commit 9426a79

Please sign in to comment.